FileAdapter.ThrowIfNotOpen Method

Definition

Namespace: ASNA.DataGate.Client
Assembly: ASNA.QSys.DataGate.Client.dll

Checks if the provided reference is not null. If it is not null, the refernce is returned. If it is null, a dgException is thrown with its Error property set to dgErrorNumber.dgEaNOFILE.

static T ThrowIfNotOpen<T>(T? object)

Parameters

Type Parameter name Description
T object The state to check.

Returns

Type Description
T The object if it is not null.

See Also