DeclarationCache.GetType Method (Type, BindingOptions) |
Namespace: PostSharp.Sdk.CodeModel
Assembly: PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public ITypeSignature GetType( Type type, BindingOptions bindingOptions )
Parameters
- type
- Type: System.Type
The reflection type. - bindingOptions
- Type: PostSharp.Sdk.CodeModel.BindingOptions
Binding options. Specify RequireGenericInstance or RequireGenericDefinition when requesting a generic type.
Return Value
Type: ITypeSignatureAn ITypeSignature.
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.