IComparableExtensionsLessThanT(T, IComparable) Method
Determines whether the source value is less 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 LessThan<T>(
this T value,
IComparable compare
)
where T : IComparable
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Function LessThan(Of T As IComparable) (
value As T,
compare As IComparable
) As Boolean
Dim value As T
Dim compare As IComparable
Dim returnValue As Boolean
returnValue = value.LessThan(compare)
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
generic<typename T>
where T : IComparable
static bool LessThan(
T value,
IComparable^ compare
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member LessThan :
value : 'T *
compare : IComparable -> bool when 'T : IComparable
No code example is currently available or this language may not be supported.
- value T
-
The source value to compare.
- compare IComparable
-
The value to compare against value.
- T
-
The type of the value and comparison.
Boolean
True if the source value is less 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 = 1
Dim compareTo As Double = 5.0R
Dim isLessThan As Boolean = value.LessThan(compareTo)
Console.WriteLine($"{value} is less than {compareTo}?: {isLessThan}")
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.