IComparableExtensionsGreatherThanT(T, T) Method
Determines whether the source value is greather than the specified comparison value.
Namespace: DevCase.Extensions.IComparableExtensionsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static bool GreatherThan<T>(
this T value,
T compare
)
where T : Object, IComparable<T>
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Function GreatherThan(Of T As {Object, IComparable(Of T)}) (
value As T,
compare As T
) As Boolean
Dim value As T
Dim compare As T
Dim returnValue As Boolean
returnValue = value.GreatherThan(compare)
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
generic<typename T>
where T : Object, IComparable<T>
static bool GreatherThan(
T value,
T compare
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member GreatherThan :
value : 'T *
compare : 'T -> bool when 'T : Object and IComparable<'T>
No code example is currently available or this language may not be supported.
- value T
-
The source value to compare.
- compare T
-
The value to compare against value.
- T
-
The type of the value and comparison.
Boolean
True if the source value is greather than the specified comparison value; otherwise, False.
In Visual Basic and C#, you can call this method as an instance method on any object of type
T. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
This is a code example.
No code example is currently available or this language may not be supported.
Dim value As Integer = 5
Dim compareTo As Integer = 1
Dim isGreatherThan As Boolean = value.GreatherThan(compareTo)
Console.WriteLine($"{value} is greather than {compareTo}?: {isGreatherThan}")
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.