Open JohanLarsson opened 8 years ago
/// <summary>
/// Controls how increment and decrement behaves.
/// </summary>
public enum IncrementMode
{
/// <summary>
/// Truncate to the limit if overflow would have happened.
/// </summary>
Truncate,
/// <summary>
/// Add the increment even if it overflows the limit.
/// </summary>
Overflow,
/// <summary>
/// Don't allow incrementing if the limit would be overflown.
/// </summary>
DisableIfOverflow,
}
BoundaryPolicy
OnLimitReached
(kind of meh since it has a silly callback-like name)BoundaryPolicy is nice, thanks!
/// <summary>
/// Controls how increment and decrement behaves.
/// </summary>
public enum BoundaryPolicy
{
/// <summary>
/// Truncate to the limit if overflow would have happened.
/// </summary>
Truncate,
/// <summary>
/// Add the increment even if it overflows the limit.
/// </summary>
Overflow,
/// <summary>
/// Don't allow incrementing or decrementing if the limit would be overflown.
/// </summary>
Disable,
}