GetVariable

GetVariable(string, object)

public object GetVariable(string name, object defaultValue) ;

Description

Get the value of Variable.

Parameters

Parameter Name Description
name Name.
defaultValue Default value. It is returned when there is no parameter.

Returns

The value of the parameter. If there is no parameter, it returns defaultValue.

GetVariable(int, object)

public object GetVariable(int id, object defaultValue) ;

Description

Get the value of Variable.

Parameters

Parameter Name Description
id ID.
defaultValue Default value. It is returned when there is no parameter.

Returns

The value of the parameter. If there is no parameter, it returns defaultValue.

GetVariable<TVariable>(string, TVariable)

public TVariable GetVariable<TVariable>(string name, TVariable defaultValue) ;

Description

Get the value of Variable.

Type Parameters

Type Parameter Name Description Type Constraints
TVariable Type of Variable to get

Parameters

Parameter Name Description
name Name.
defaultValue Default value. It is returned when there is no parameter.

Returns

The value of the parameter. If there is no parameter, it returns defaultValue.

GetVariable<TVariable>(int, TVariable)

public TVariable GetVariable<TVariable>(int id, TVariable defaultValue) ;

Description

Get the value of Variable.

Type Parameters

Type Parameter Name Description Type Constraints
TVariable Type of Variable to get

Parameters

Parameter Name Description
id ID.
defaultValue Default value. It is returned when there is no parameter.

Returns

The value of the parameter. If there is no parameter, it returns defaultValue.