/// <summary> /// Initializes a new instance of the <see cref="MustBeLessThanAttribute"/> class. /// </summary> /// <param name="maxValue">The maximum value.</param> public MustBeLessThanAttribute(IComparable maxValue) : this() { maxValue.CannotBeNull(); this.MaxValue = maxValue; }
/// <summary> /// Initializes a new instance of the <see cref="CannotBeLessThanOrEqualToAttribute"/> class. /// </summary> /// <param name="minValue">The minimum value.</param> public CannotBeLessThanOrEqualToAttribute(IComparable minValue) : this() { minValue.CannotBeNull(); this.MinValue = minValue; }
/// <summary> /// Initializes a new instance of the <see cref="MustBeGreaterThanOrEqualToAttribute"/> class. /// </summary> /// <param name="minValue">The minimum value.</param> public MustBeGreaterThanOrEqualToAttribute(IComparable minValue) : this() { minValue.CannotBeNull(); this.MinValue = minValue; }