Provides extension methods to work with generic declarations.
Namespace: Metalama.Framework.Code
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public static class GenericExtensionsMethods
| Name | Description |
|---|---|
| ForTypeInstance(IConstructor, INamedType) | Returns a representation of the current IConstructor, but for a different generic instance of the declaring type. |
| ForTypeInstance(IEvent, INamedType) | Returns a representation of the current IEvent, but for a different generic instance of the declaring type. |
| ForTypeInstance(IField, INamedType) | Returns a representation of the current IField, but for a different generic instance of the declaring type. |
| ForTypeInstance(IMemberOrNamedType, INamedType) | Returns a representation of the current IMemberOrNamedType, but for a different generic instance of the declaring type. |
| ForTypeInstance(IMethod, INamedType) | Returns a representation of the current IMethod, but for a different generic instance of the declaring type. |
| ForTypeInstance(INamedType, INamedType) | Returns a representation of the current nested INamedType, but for a different generic instance of the declaring type. |
| ForTypeInstance(IProperty, INamedType) | Returns a representation of the current IProperty, but for a different generic instance of the declaring type. |
| GetBase(IMemberOrNamedType) | Gets the base type of a type or the base member of an overridden member, if any. |
| GetOriginalDefinition(IConstructor) | |
| GetOriginalDefinition(IDeclaration) | |
| GetOriginalDefinition(IEvent) | |
| GetOriginalDefinition(IMember) | |
| GetOriginalDefinition(IMemberOrNamedType) | |
| GetOriginalDefinition(IMethod) | |
| GetOriginalDefinition(INamedType) | |
| GetOriginalDefinition(IProperty) | |
| IsSelfOrDeclaringTypeGeneric(IMemberOrNamedType) | Returns |
| MakeGenericInstance(IMethod, params IType[]) | Constructs a generic instance of an IMethod, with type arguments given as IType objects. |
| MakeGenericInstance(IMethod, IReadOnlyList<Type>) | |
| MakeGenericInstance(IMethod, params Type[]) | Constructs a generic instance of an IMethod, with type arguments given as reflection Type objects. |
| MakeGenericInstance(INamedType, params IType[]) | Constructs a generic instance of an INamedType, with type arguments given as IType objects. |
| MakeGenericInstance(INamedType, IReadOnlyList<Type>) | Constructs a generic instance of an INamedType, with type arguments given as a list of reflection Type objects. |
| MakeGenericInstance(INamedType, params Type[]) | Constructs a generic instance of an INamedType, with type arguments given as reflection Type objects. |
| WithTypeArguments(IMethod, params IType[]) | |
| WithTypeArguments(IMethod, IReadOnlyList<IType>) | Constructs a generic instance of an IMethod, with type arguments given as a list of IType objects. |
| WithTypeArguments(IMethod, IReadOnlyList<Type>, IReadOnlyList<Type>) | |
| WithTypeArguments(IMethod, params Type[]) | |
| WithTypeArguments(IMethod, Type[], Type[]) | |
| WithTypeArguments(INamedType, params IType[]) | Constructs a generic instance of an INamedType, with type arguments given as IType. |
| WithTypeArguments(INamedType, IReadOnlyList<IType>) | |
| WithTypeArguments(INamedType, IReadOnlyList<Type>) | |
| WithTypeArguments(INamedType, params Type[]) |