PostSharp SDK 6.10 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Custom­Attribute­Helper Class / Custom­Attribute­Helper Methods / Custom­Attribute­Helper.​Set­Runtime­Object­Named­Arguments Method

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: 6.10.14.0 (6.10.14.0)
Syntax
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

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