PostSharp SDK 2023.0 / / 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: 2023.0.3.0 (2023.0.3.0)
public static ObjectConstruction ToObjectConstruction(
	this IAnnotationValue 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