Example #1
0
 /// <summary>
 ///     Checks if the data value is greater than or equal to the given value.
 /// </summary>
 /// <param name="value"></param>
 /// <returns></returns>
 public bool GreaterThanEqual(IntData value)
 {
     return(Value >= value.Value);
 }
Example #2
0
 /// <summary>
 ///     Checks if the data value is less than or equal to the given value.
 /// </summary>
 /// <param name="value"></param>
 /// <returns></returns>
 public bool LessThanEqual(IntData value)
 {
     return(Value <= value.Value);
 }
Example #3
0
 /// <summary>
 ///     Checks if the data value is greater than the given value.
 /// </summary>
 /// <param name="value"></param>
 /// <returns></returns>
 public bool GreaterThan(IntData value)
 {
     return(Value > value.Value);
 }
Example #4
0
 /// <summary>
 ///     Checks if the data value is less than the given value.
 /// </summary>
 /// <param name="value"></param>
 /// <returns></returns>
 public bool LessThan(IntData value)
 {
     return(Value < value.Value);
 }
Example #5
0
 /// <summary>
 ///     Checks if the data value is equal to the given value.
 /// </summary>
 /// <param name="value"></param>
 /// <returns></returns>
 public bool Equal(IntData value)
 {
     return(Value == value.Value);
 }
Example #6
0
 /// <summary>
 ///     Checks if the data value is not equal to the given value.
 /// </summary>
 /// <param name="value"></param>
 /// <returns></returns>
 public bool NotEqual(IntData value)
 {
     return(Value != value.Value);
 }
Example #7
0
 /// <summary>
 ///     Divides the data value by an amount.
 /// </summary>
 /// <param name="value"></param>
 public void DivideBy(IntData value)
 {
     Value /= value.Value;
 }
Example #8
0
 /// <summary>
 ///     Multiplies an amount to the data value.
 /// </summary>
 /// <param name="value"></param>
 public void MultiplyWith(IntData value)
 {
     Value *= value.Value;
 }
Example #9
0
 /// <summary>
 ///     Subtracts an amount from the data value.
 /// </summary>
 /// <param name="value"></param>
 public void SubtractFrom(IntData value)
 {
     Value -= value.Value;
 }
Example #10
0
 /// <summary>
 ///     Adds an amount to the data value.
 /// </summary>
 /// <param name="value"></param>
 public void AddTo(IntData value)
 {
     Value += value.Value;
 }
Example #11
0
 /// <summary>
 ///     Attempts to set the value of this data to the supplied value.
 /// </summary>
 /// <param name="value"></param>
 public void SetValue(IntData value)
 {
     Value = value.Value;
 }