Search Results for

    Show / Hide Table of Contents

    Class ComparableExtensions

    Defines a collection of extensions for objects.

    Inheritance
    System.Object
    ComparableExtensions
    Namespace: MADE.Data.Validation.Extensions
    Assembly: MADE.Data.Validation.dll
    Syntax
    public static class ComparableExtensions : object

    Methods

    | Improve this Doc View Source

    IsGreaterThan<T>(T, T)

    Determines whether the value is greater than the other value.

    Declaration
    public static bool IsGreaterThan<T>(this T value, T other)
    
        where T : IComparable
    Parameters
    Type Name Description
    T value

    The value to compare.

    T other

    The value to compare against.

    Returns
    Type Description
    System.Boolean

    True if the value is greater than the other value.

    Type Parameters
    Name Description
    T

    The type.

    | Improve this Doc View Source

    IsGreaterThanOrEqualTo<T>(T, T)

    Determines whether the value is greater than or equal to the other value.

    Declaration
    public static bool IsGreaterThanOrEqualTo<T>(this T value, T other)
    
        where T : IComparable
    Parameters
    Type Name Description
    T value

    The value to compare.

    T other

    The value to compare against.

    Returns
    Type Description
    System.Boolean

    True if the value is greater than or equal to the other value.

    Type Parameters
    Name Description
    T

    The type.

    | Improve this Doc View Source

    IsLessThan<T>(T, T)

    Determines whether the value is less than the other value.

    Declaration
    public static bool IsLessThan<T>(this T value, T other)
    
        where T : IComparable
    Parameters
    Type Name Description
    T value

    The value to compare.

    T other

    The value to compare against.

    Returns
    Type Description
    System.Boolean

    True if the value is less than the other value.

    Type Parameters
    Name Description
    T

    The type.

    | Improve this Doc View Source

    IsLessThanOrEqualTo<T>(T, T)

    Determines whether the value is less than or equal to the other value.

    Declaration
    public static bool IsLessThanOrEqualTo<T>(this T value, T other)
    
        where T : IComparable
    Parameters
    Type Name Description
    T value

    The value to compare.

    T other

    The value to compare against.

    Returns
    Type Description
    System.Boolean

    True if the value is less than or equal to the other value.

    Type Parameters
    Name Description
    T

    The type.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright (c) MADE Apps