PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Custom­Attribute­Helper Class

CustomAttributeHelper Class

Extension methods for IAnnotationValue.
Inheritance Hierarchy
System.Object
  PostSharp.Sdk.CodeModel.CustomAttributeHelper

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 class CustomAttributeHelper

The CustomAttributeHelper type exposes the following members.

Methods
  NameDescription
Public methodStatic memberConstructRuntimeObject(IAnnotationValue)
Construct the instance (typically an object derived from Attribute) represented a given IAnnotationValue. This overload uses reflection to locate the constructor, and does not work if the target framework is not .NET Framework.
Public methodStatic memberConstructRuntimeObject(IAnnotationValue, SerializedValueBindingOptions)
Construct the instance (typically an object derived from Attribute) represented a given IAnnotationValue, and specifies options. This overload uses reflection to locate the constructor, and does not work if the target framework is not .NET Framework.
Public methodStatic memberConstructRuntimeObject(IAnnotationValue, Type)
Construct the instance represented by a given IAnnotationValue, given its type passed as an argument. This overload is safe even when the target framework is not .NET Framework.
Public methodStatic memberConstructRuntimeObject(IAnnotationValue, Type, SerializedValueBindingOptions)
Construct the instance represented by a given IAnnotationValue, given its type passed as an argument, and specifies options. This overload is safe even when the target framework is not .NET Framework.
Public methodStatic memberConstructRuntimeObject<T>(IAnnotationValue)
Construct the instance represented by a given IAnnotationValue, given its type passed as a generic argument. This overload is safe even when the target framework is not .NET Framework.
Public methodStatic memberConstructRuntimeObject<T>(IAnnotationValue, SerializedValueBindingOptions)
Construct the instance represented by a given IAnnotationValue, given its type passed as a generic argument, and specifies options. This overload is safe even when the target framework is not .NET Framework.
Public methodStatic memberEmitCustomAttributeConstruction
Emits instructions that construct a custom attribute.
Public methodStatic memberGetRuntimeValue
Public methodStatic memberRender(IAnnotationValue)
Renders a custom attribute value to a string.
Public methodStatic memberRender(IAnnotationValue, StringBuilder)
Renders a custom attribute value to an existing StringBuilder.
Public methodStatic memberSetRuntimeObjectNamedArguments
Sets the fields and properties of an object (using reflection) given the named arguments of an IAnnotationValue.
See Also