Metalama / / API Documentation / Aspect API / Metalama.​Framework.​Code / Type­Extensions

Class TypeExtensions

Provides extension methods for IType.

Inheritance
TypeExtensions
Namespace: Metalama.Framework.Code
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public static class TypeExtensions : Object

Methods

Name Description
DefaultValue(IType)

Generates the default(T) syntax for the type.

GetAsyncInfo(IType)
Is(IType, IType, ConversionKind, TypeComparison)

Equivalent to the is operator in C#. Gets a value indicating whether the current type is assignable to another given type, given as an IType.

Is(IType, SpecialType, ConversionKind)
Is(IType, Type, ConversionKind, TypeComparison)

Equivalent to the is operator in C#. Gets a value indicating whether the current type is assignable to another given type, given as a reflection Type.

ToSerializableId(IType)

Gets a SerializableTypeId for the type.