IAnnotationValue Interface |
Defines the semantics of a custom attribute value,
i.e. basically a constructor, its arguments and other named arguments.
Namespace: PostSharp.Sdk.CodeModel
Assembly: PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public interface IAnnotationValue
The IAnnotationValue type exposes the following members.
Name | Description | |
---|---|---|
Constructor |
Gets the custom attribute constructor.
| |
ConstructorArguments |
Gets the set of constructor arguments.
| |
NamedArguments |
Gets the set of named arguments.
|
Name | Description | |
---|---|---|
Translate |
Translates the current annotation so that it is valid in another module.
|
Name | Description | |
---|---|---|
ConstructRuntimeObject() | Overloaded.
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.
(Defined by CustomAttributeHelper.) | |
ConstructRuntimeObject(Type) | Overloaded.
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.
(Defined by CustomAttributeHelper.) | |
ConstructRuntimeObject(SerializedValueBindingOptions) | Overloaded.
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.
(Defined by CustomAttributeHelper.) | |
ConstructRuntimeObject(Type, SerializedValueBindingOptions) | Overloaded.
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.
(Defined by CustomAttributeHelper.) | |
ConstructRuntimeObject<T>() | Overloaded.
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.
(Defined by CustomAttributeHelper.) | |
ConstructRuntimeObject<T>(SerializedValueBindingOptions) | Overloaded.
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.
(Defined by CustomAttributeHelper.) | |
Render() | Overloaded.
Renders a custom attribute value to a string.
(Defined by CustomAttributeHelper.) | |
Render(StringBuilder) | Overloaded.
Renders a custom attribute value to an existing StringBuilder.
(Defined by CustomAttributeHelper.) | |
SetRuntimeObjectNamedArguments |
Sets the fields and properties of an object (using reflection) given the named arguments of an IAnnotationValue.
(Defined by CustomAttributeHelper.) | |
ToObjectConstruction |
Converts an IAnnotationValue into an ObjectConstruction.
(Defined by AnnotationValueExtensions.) |