Class Incrementer<TValue, TDecision>
Represents the incrementer.
Implements
Inherited Members
Namespace: Platform.Incrementers
Assembly: Platform.Incrementers.dll
Syntax
public class Incrementer<TValue, TDecision> : Incrementer, IIncrementer
Type Parameters
| Name | Description |
|---|---|
| TValue | |
| TDecision |
Constructors
| Improve this Doc View SourceIncrementer()
Initializes a new Incrementer instance.
Declaration
public Incrementer()
Incrementer(TDecision)
Initializes a new Incrementer instance.
Declaration
public Incrementer(TDecision trueValue)
Parameters
| Type | Name | Description |
|---|---|---|
| TDecision | trueValue | A true value.
|
Incrementer(UInt64, TDecision)
Initializes a new Incrementer instance.
Declaration
public Incrementer(ulong initialValue, TDecision trueValue)
Parameters
| Type | Name | Description |
|---|---|---|
| UInt64 | initialValue | A initial value.
|
| TDecision | trueValue | A true value.
|
Methods
| Improve this Doc View SourceIncrementAndReturnTrue()
Increments the and return true.
Declaration
public TDecision IncrementAndReturnTrue()
Returns
| Type | Description |
|---|---|
| TDecision | The true value.
|
IncrementAndReturnTrue(TValue)
Increments the and return true using the specified value.
Declaration
public TDecision IncrementAndReturnTrue(TValue value)
Parameters
| Type | Name | Description |
|---|---|---|
| TValue | value | The value.
|
Returns
| Type | Description |
|---|---|
| TDecision | The true value.
|