PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Domain Class / Domain Methods / Domain.​Find­Type­Definition Method / Domain.​Find­Type­Definition Method (Assembly­Qualified­Type­Name, Binding­Options)

Domain.FindTypeDefinition Method (AssemblyQualifiedTypeName, BindingOptions)

Find the TypeDefDeclaration of a type given its name in the current Domain and specifies binding options.

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public TypeDefDeclaration FindTypeDefinition(
	AssemblyQualifiedTypeName assemblyQualifiedTypeName,
	BindingOptions bindingOptions = BindingOptions.Default
)

Parameters

assemblyQualifiedTypeName
Type: PostSharp.Sdk.CodeModel.AssemblyQualifiedTypeName
Assembly-qualified name of the type to be found.
bindingOptions (Optional)
Type: PostSharp.Sdk.CodeModel.BindingOptions
Binding options.

Return Value

Type: TypeDefDeclaration
The TypeDefDeclaration corresponding to assemblyQualifiedTypeName.
See Also