Provides extension methods for IType.
Namespace: Metalama.Framework.Code
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public static class TypeExtensions
Methods
Name | Description |
---|---|
DefaultValue(IType) | Generates the |
DerivesFrom(INamedType, INamedType, DerivedTypesOptions) | Determines if a type derives from another one, given as an INamedType. |
DerivesFrom(INamedType, Type, DerivedTypesOptions) | Determines if a type derives from another one, given as a Type. |
GetAsyncInfo(IType) | Gets the AsyncInfo for a type. |
Is(IType, IType, ConversionKind, TypeComparison) | Equivalent to the |
Is(IType, SpecialType, ConversionKind) | Equivalent to the |
Is(IType, Type, ConversionKind, TypeComparison) | Equivalent to the |
ToSerializableId(IType) | Gets a SerializableTypeId for the type. |
ToTypeOfExpression(IType) | Gets an IExpression representing 'typeof' expression for the given type. |