예제 #1
0
        /// <inheritdoc />
        protected override IntValueNode ParseValue(int runtimeValue)
        {
            if (runtimeValue > MaxValue)
            {
                throw ThrowHelper.NegativeIntType_ParseValue_IsNotNegative(this);
            }

            return(base.ParseValue(runtimeValue));
        }
예제 #2
0
 /// <inheritdoc />
 protected override SerializationException CreateParseResultError(object runtimeValue)
 {
     throw ThrowHelper.NegativeIntType_ParseValue_IsNotNegative(this);
 }