Struct Statics.OperatorValidated.Inequality<T>
Used for inequality syntax.
Namespace: Towel
Assembly: Towel.dll
Syntax
public struct Inequality<T>
Type Parameters
Name | Description |
---|---|
T | The generic type of elements the inequality is being used on. |
Methods
| Improve this Doc View SourceEquals(Nullable<Object>)
This member is not intended to be invoked.
Declaration
public override bool Equals(object? obj)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.Object> | obj |
Returns
Type | Description |
---|---|
System.Boolean |
GetHashCode()
This member is not intended to be invoked.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
ToString()
Converts the result of this inequality to a
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Operators
| Improve this Doc View SourceEquality(Statics.OperatorValidated.Inequality<T>, T)
Adds an equal operation to a running inequality.
Declaration
public static Statics.OperatorValidated.Inequality<T> operator ==(Statics.OperatorValidated.Inequality<T> a, T b)
Parameters
Type | Name | Description |
---|---|---|
Statics.OperatorValidated.Inequality<T> | a | The current running inequality and left hand operand. |
T | b | The value of the right hand operand of the equal operation. |
Returns
Type | Description |
---|---|
Statics.OperatorValidated.Inequality<T> | A running inequality with the additonal equal operation. |
GreaterThan(Statics.OperatorValidated.Inequality<T>, T)
Adds a greater than operation to a running inequality.
Declaration
public static Statics.OperatorValidated.Inequality<T> operator>(Statics.OperatorValidated.Inequality<T> a, T b)
Parameters
Type | Name | Description |
---|---|---|
Statics.OperatorValidated.Inequality<T> | a | The current running inequality and left hand operand. |
T | b | The value of the right hand operand of the greater than operation. |
Returns
Type | Description |
---|---|
Statics.OperatorValidated.Inequality<T> | A running inequality with the additonal greater than operation. |
GreaterThanOrEqual(Statics.OperatorValidated.Inequality<T>, T)
Adds a greater than or equal operation to a running inequality.
Declaration
public static Statics.OperatorValidated.Inequality<T> operator >=(Statics.OperatorValidated.Inequality<T> a, T b)
Parameters
Type | Name | Description |
---|---|---|
Statics.OperatorValidated.Inequality<T> | a | The current running inequality and left hand operand. |
T | b | The value of the right hand operand of the greater than or equal operation. |
Returns
Type | Description |
---|---|
Statics.OperatorValidated.Inequality<T> | A running inequality with the additonal greater than or equal operation. |
Implicit(Statics.OperatorValidated.Inequality<T> to Boolean)
Converts this running inequality into the result of the expression.
Declaration
public static implicit operator bool (Statics.OperatorValidated.Inequality<T> inequality)
Parameters
Type | Name | Description |
---|---|---|
Statics.OperatorValidated.Inequality<T> | inequality | The inequality to convert into the result of the expression. |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(Statics.OperatorValidated.Inequality<T>, T)
Adds an inequal operation to a running inequality.
Declaration
public static Statics.OperatorValidated.Inequality<T> operator !=(Statics.OperatorValidated.Inequality<T> a, T b)
Parameters
Type | Name | Description |
---|---|---|
Statics.OperatorValidated.Inequality<T> | a | The current running inequality and left hand operand. |
T | b | The value of the right hand operand of the inequal operation. |
Returns
Type | Description |
---|---|
Statics.OperatorValidated.Inequality<T> | A running inequality with the additonal inequal operation. |
LessThan(Statics.OperatorValidated.Inequality<T>, T)
Adds a less than operation to a running inequality.
Declaration
public static Statics.OperatorValidated.Inequality<T> operator <(Statics.OperatorValidated.Inequality<T> a, T b)
Parameters
Type | Name | Description |
---|---|---|
Statics.OperatorValidated.Inequality<T> | a | The current running inequality and left hand operand. |
T | b | The value of the right hand operand of the less than operation. |
Returns
Type | Description |
---|---|
Statics.OperatorValidated.Inequality<T> | A running inequality with the additonal less than operation. |
LessThanOrEqual(Statics.OperatorValidated.Inequality<T>, T)
Adds a less than or equal operation to a running inequality.
Declaration
public static Statics.OperatorValidated.Inequality<T> operator <=(Statics.OperatorValidated.Inequality<T> a, T b)
Parameters
Type | Name | Description |
---|---|---|
Statics.OperatorValidated.Inequality<T> | a | The current running inequality and left hand operand. |
T | b | The value of the right hand operand of the less than or equal operation. |
Returns
Type | Description |
---|---|
Statics.OperatorValidated.Inequality<T> | A running inequality with the additonal less than or equal operation. |