PostSharpAPI ReferencePost­Sharp.​SerializationIArguments­ReaderGet­Value
Open sandboxFocus

IArgumentsReader.GetValue Method

GetValue<T>(String, String)

Reads a value from the collection, and throws an exception if the value does not exist.

Declaration
T GetValue<T>(string name, string scope = null)
Parameters
Type Name Description
System.String name

Argument name.

System.String scope

An optional prefix of name, similar to a namespace.

Returns
Type Description
T

The value of the argument named name in the given optional scope.

Type Parameters
Name Description
T

Value type.