Class ComparableExtensions
Defines a collection of extensions for
Inheritance
Namespace: MADE.Data.Validation.Extensions
Assembly: MADE.Data.Validation.dll
Syntax
public static class ComparableExtensions : object
Methods
| Improve this Doc View SourceIsGreaterThan<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 |
Type Parameters
Name | Description |
---|---|
T | The |
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 |
Type Parameters
Name | Description |
---|---|
T | The |
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 |
Type Parameters
Name | Description |
---|---|
T | The |
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 |
Type Parameters
Name | Description |
---|---|
T | The |