MrKWatkins.Ast Help

Properties.TryGet Method

Definition

Tries to get the value of a single valued property with the specified key.

public bool TryGet<T>(string key, out T? value);

Type Parameters

Name

Description

T

The type of the property.

Parameters

Name

Type

Description

key

String

The key of the property.

value

T

The value of the property if it exists.

Returns

Boolean

true if the property exists, false otherwise.

Last modified: 22 November 2024