pair class : ExistsSecond getter

Description

Returns whether the second instance is set.

Syntax

pairInstance.ExistsSecond

Arguments

None

Return value

ClassDescription
boolWhether it is set.

Sample code

1:

pair newPair = new pair();

2:

bool exists = newPair.ExistsSecond; // false;

3:

newPair.Second = new string("set as second item.");

4:

exists = newPair.ExistsSecond; // true

Notes

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

Links for reference

None

Copyright © Rice All rights reserved.