Metalama / / API Documentation / Aspect API / Metalama.​Framework.​Serialization / IArguments­Reader / Try­Get­Value

Method TryGetValue

TryGetValue<T>(String, out T, String)

Attempts to read a value from the collection, and does not throw an exception if the value does not exist.

bool TryGetValue<T>(string name, out T value, string scope = null)
Type Name Description
String name

Argument name.

T value

At output, set to the value of the argument named name in the given optional scope.

String scope

An optional prefix of name, similar to a namespace.

Type Description

true if the value is defined, otherwise false.

Type Parameters
Name Description

Value type.