PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Custom­Attribute­Helper Class / Custom­Attribute­Helper Methods / Custom­Attribute­Helper.​Construct­Runtime­Object Method

CustomAttributeHelper.ConstructRuntimeObject Method

Overload List
  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<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(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<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 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.
See Also