Home News DOC Class DL Others Cooker
Class  >  pair  >  Release(int)
pair class : Release(int) method

Description

Returns to the uninitialized state.

Syntax

pairInstance.Release(int mode)

Arguments

ClassNameDescription
intmodeRemoving mode.

Return value

None.

Sample code

1:

pair newPair = new pair(10, true);

2:

bool init = newPair.Fitted; // true

3:

bool first = newPair.ExistsFirst; // true

4:

bool second = newPair.ExistsSecond; // true

5:

newPair.Release(0);

6:

first = newPair.ExistsFirst; // false

7:

init = newPair.Fitted; // false

8:

newPair.Release(1);

9:

second = newPair.ExistsSecond; // false

Notes

Removing mode:

0 clears the first.

1 clears the second.

Other number clears everything.

Links for reference

None.

Copyright © Rice All rights reserved.