Ads API .NET library
|
Generates a sequence of temporary negative IDs. More...
Public Member Functions | |
TemporaryIdGenerator () | |
Initializes a new instance of the TemporaryIdGenerator class. More... | |
TemporaryIdGenerator (int startId) | |
Initializes a new instance of the TemporaryIdGenerator class. More... | |
Properties | |
long | Next [get] |
Returns the next ID in the list. More... | |
IEnumerator< int > | Sequence [get] |
Gets the sequence of numbers. More... | |
Generates a sequence of temporary negative IDs.
|
inline |
Initializes a new instance of the TemporaryIdGenerator class.
|
inline |
Initializes a new instance of the TemporaryIdGenerator class.
startId | The ID to start generating the sequence from. |
ArgumentException | If startId is a positive value. |
The IDs are generated in the increasing order from the startId .
|
get |
Returns the next ID in the list.
|
get |
Gets the sequence of numbers.