All pages
Powered by GitBook
1 of 1

Loading...

TryGetValue<T>(string,T?)

Method in

Given a variable name, attempts to fetch a value for the variable, either from storage, initial values found in , or by evaluating a smart variable found in .

Name
Description
Name
Description

true if a value could be fetched; false otherwise.

public virtual bool TryGetValue<T>(string variableName, [System.Diagnostics.CodeAnalysis.NotNullWhen(true)] out T? result)

string variableName

The name of the variable.

Summary

Parameters

MemoryVariableStore
Program
Program

T result

If this method returns true , this parameter will contain the fetched value.

T

The type of the value to return. The fetched value will be converted to this type, if possible.

Type Parameters

Returns