Metalama / / API Documentation / Aspect API / Metalama.​Framework.​Code / Generic­Extensions / Get­Original­Definition
Open sandbox

Method GetOriginalDefinition

GetOriginalDefinition(IDeclaration)

Gets the original declaration of the IDeclaration, i.e. the declaration where all type parameters are unbound, including the ones of the containing types.

Declaration
public static IDeclaration GetOriginalDefinition(this IDeclaration declaration)
Parameters
Type Name Description
IDeclaration declaration
Returns
Type Description
IDeclaration

GetOriginalDefinition(INamedType)

Gets the original declaration of the IDeclaration, i.e. the declaration where all type parameters are unbound, including the ones of the containing types.

Declaration
public static INamedType GetOriginalDefinition(this INamedType declaration)
Parameters
Type Name Description
INamedType declaration
Returns
Type Description
INamedType

GetOriginalDefinition(IMemberOrNamedType)

Gets the original declaration of the IDeclaration, i.e. the declaration where all type parameters are unbound, including the ones of the containing types.

Declaration
public static IMemberOrNamedType GetOriginalDefinition(this IMemberOrNamedType declaration)
Parameters
Type Name Description
IMemberOrNamedType declaration
Returns
Type Description
IMemberOrNamedType

GetOriginalDefinition(IMember)

Gets the original declaration of the IDeclaration, i.e. the declaration where all type parameters are unbound, including the ones of the containing types.

Declaration
public static IMember GetOriginalDefinition(this IMember declaration)
Parameters
Type Name Description
IMember declaration
Returns
Type Description
IMember

GetOriginalDefinition(IMethod)

Gets the original declaration of the IDeclaration, i.e. the declaration where all type parameters are unbound, including the ones of the containing types.

Declaration
public static IMethod GetOriginalDefinition(this IMethod declaration)
Parameters
Type Name Description
IMethod declaration
Returns
Type Description
IMethod

GetOriginalDefinition(IProperty)

Gets the original declaration of the IDeclaration, i.e. the declaration where all type parameters are unbound, including the ones of the containing types.

Declaration
public static IProperty GetOriginalDefinition(this IProperty declaration)
Parameters
Type Name Description
IProperty declaration
Returns
Type Description
IProperty

GetOriginalDefinition(IEvent)

Gets the original declaration of the IDeclaration, i.e. the declaration where all type parameters are unbound, including the ones of the containing types.

Declaration
public static IEvent GetOriginalDefinition(this IEvent declaration)
Parameters
Type Name Description
IEvent declaration
Returns
Type Description
IEvent

GetOriginalDefinition(IConstructor)

Gets the original declaration of the IDeclaration, i.e. the declaration where all type parameters are unbound, including the ones of the containing types.

Declaration
public static IConstructor GetOriginalDefinition(this IConstructor declaration)
Parameters
Type Name Description
IConstructor declaration
Returns
Type Description
IConstructor