pair class : ExistsFirst getter

Description

Returns whether the first instance is set.

Syntax

pairInstance.ExistsFirst

Arguments

None

Return value

ClassDescription
boolWhether it is set.

Sample code

1:

pair newPair = new pair();

2:

bool exists = newPair.ExistsFirst; // false;

3:

newPair.First = new string("set as first item.");

4:

exists = newPair.ExistsFirst; // true

Notes

If the instance is set, returns true. Otherwise, returns false.

Links for reference

None

Copyright © Rice All rights reserved.