コード例 #1
0
        /// <summary>
        ///     Initializes a new instance of the <see cref="HiLoValueGenerator{TValue}" /> class.
        /// </summary>
        /// <param name="generatorState"> The state used to keep track of which value to return next. </param>
        protected HiLoValueGenerator([NotNull] HiLoValueGeneratorState generatorState)
        {
            Check.NotNull(generatorState, nameof(generatorState));

            _generatorState = generatorState;
        }
コード例 #2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="HiLoValueGenerator{TValue}" /> class.
 /// </summary>
 /// <param name="generatorState">The state used to keep track of which value to return next.</param>
 protected HiLoValueGenerator(HiLoValueGeneratorState generatorState)
 {
     _generatorState = generatorState;
 }