PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Type­Spec­Declaration Class / Type­Spec­Declaration Methods / Type­Spec­Declaration.​Unwrap Method

TypeSpecDeclaration.Unwrap Method

Conditionally unwraps the ITypeSignature contained in a TypeSpecDeclaration.

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
public static ITypeSignature Unwrap(
	ITypeSignature signature
)

Parameters

signature
Type: PostSharp.Sdk.CodeModel.ITypeSignature
A signature (eventually a TypeSpecDeclaration).

Return Value

Type: ITypeSignature
If signature is a TypeSpecDeclaration, the current method returns the signature contained in the TypeSpecDeclaration. Otherwise, signature is returned.
See Also