namespaceStratis.SmartContracts.CLR{/// <summary>/// Generates an sequence of sequential numbers for one-time use./// </summary>publicclassNonceGenerator{privateulongvalue;/// <summary>/// Creates a new <see cref="NonceGenerator"/>./// </summary>/// <param name="value">The initial value of the NonceGenerator, defaulting to 0.</param>publicNonceGenerator(ulongvalue=0){this.value=value;}/// <summary>/// Returns the next value in the sequence./// </summary>publiculongNext=>this.value++;publicoverridestringToString(){returnthis.value.ToString();}}}