ExtensionMethod.NET Home of 880 C#, Visual Basic, F# and Javascript extension methods

Extended Extension

Beukes

Source

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

Author: Anton

Submitted on: 1 okt. 2015

Language: C#

Type: Int

Views: 5081