Extended Extension

 public static EIntValidation Validation(this int _value)
        {
            EIntValidation value = new EIntValidation();

            value.Output = _value;
            return value;
        }

        public static EIntMath Math(this EIntValidation _value)
        {
            EIntMath value = new EIntMath();

            value.Output = _value.Output;
            return value;
        }

        public static bool isBiggerThan(this EIntMath _value, int _this)
        {
            if (_value.Output > _this)
            {
                return true;
            }
            return false;
        }
Example:
int i = 1000;
i.Validation().Math().isBiggerThan(100);

Results
False

Description

Beukes

Details

  • Author: Anton
  • Submitted on: 10/1/2015 3:50:08 PM
  • Language: C#
  • Type: Int
  • Views: 1512

Double click on the code to select all.

 

;