PostSharp 4.3 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Serialization Namespace / IArguments­Writer Interface / IArguments­Writer Methods / IArguments­Writer.​Set­Value Method
IArgumentsWriter.SetValue Method
Sets the value of an argument.

Namespace: PostSharp.Serialization
Assembly: PostSharp (in PostSharp.dll) Version: 4.3.48.0 (4.3.48.0)
Syntax
C#
void SetValue(
	string name,
	Object value,
	string scope = null
)

Parameters

name
Type: System.String
Argument name.
value
Type: System.Object
Argument value. The value can be null or must be serializable.
scope (Optional)
Type: System.String
An optional prefix of name, similar to a namespace.
See Also