DeclarationCache.GetType Method (Type) |
Namespace: PostSharp.Sdk.CodeModel
Assembly: PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
public ITypeSignature GetType( Type type )
Parameters
- type
- Type: System.Type
The reflection type.
Return Value
Type: ITypeSignatureAn ITypeSignature.
You are required to use the second overload and to specify BindingOptions when you require a generic type.
If type is a primitive type, the method returns the class representing it, i.e. it does not return the intrinsic type. Intrinsic type substitution is allowed for type constructions.