CustomAttributeHelper.SetRuntimeObjectNamedArguments Method |
Sets the fields and properties of an object (using reflection) given the named arguments of an IAnnotationValue.
Namespace: PostSharp.Sdk.CodeModel
Assembly: PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public static void SetRuntimeObjectNamedArguments( this IAnnotationValue attribute, Object instance, SerializedValueBindingOptions bindingOptions, bool ignoreUnmatchedMembers = false )
Parameters
- attribute
- Type: PostSharp.Sdk.CodeModel.IAnnotationValue
The source IAnnotationValue, from which named arguments are read. - instance
- Type: System.Object
The instance to which named arguments should be written. - bindingOptions
- Type: PostSharp.Sdk.CodeModel.SerializedValueBindingOptions
Options. - ignoreUnmatchedMembers (Optional)
- Type: System.Boolean
true if members that do