예제 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="FourBitNumber"/> with the specified value.
        /// </summary>
        /// <param name="value">Value representing four-bit number.</param>
        /// <exception cref="ArgumentOutOfRangeException"><paramref name="value"/> is out of
        /// [<see cref="MinValue"/>; <see cref="MaxValue"/>] range.</exception>
        public FourBitNumber(byte value)
        {
            ThrowIfArgument.IsOutOfRange(nameof(value), value, Min, Max, "Value is out of range valid for four-bit number.");

            _value = value;
        }
예제 #2
0
 // Token: 0x060034B0 RID: 13488 RVA: 0x0001846B File Offset: 0x0001666B
 internal static void IsGreaterThan(string parameterName, long value, long reference, string message)
 {
     ThrowIfArgument.IsOutOfRange(parameterName, value, long.MinValue, reference, message);
 }
예제 #3
0
 // Token: 0x060034B3 RID: 13491 RVA: 0x000184A3 File Offset: 0x000166A3
 internal static void IsLessThan(string parameterName, double value, double reference, string message)
 {
     ThrowIfArgument.IsOutOfRange(parameterName, value, reference, double.MaxValue, message);
 }
예제 #4
0
 // Token: 0x060034BB RID: 13499 RVA: 0x00018535 File Offset: 0x00016735
 internal static void IsInvalidIndex(string parameterName, int index, int collectionSize)
 {
     ThrowIfArgument.IsOutOfRange(parameterName, index, 0, collectionSize, "Index is out of range.");
 }