PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Extensibility Namespace / Annotation­Value­Extensions Class / Annotation­Value­Extensions Methods / Annotation­Value­Extensions.​To­Object­Construction Method

AnnotationValueExtensions.ToObjectConstruction Method

Converts an IAnnotationValue into an ObjectConstruction.

Namespace:  PostSharp.Sdk.Extensibility
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.10.14.0 (6.10.14.0)
Syntax
C#
public static ObjectConstruction ToObjectConstruction(
	this IAnnotationValue annotationValue
)

Parameters

annotationValue
Type: PostSharp.Sdk.CodeModel.IAnnotationValue
Annotation value to be converted.

Return Value

Type: ObjectConstruction
An ObjectConstruction corresponding to annotationValue.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IAnnotationValue. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also