 | ExtensionMethodskToT Method |
Creates an inclusive range between two values. The default comparer is used
to compare values.
Namespace:
Koden.Utils.Extensions
Assembly:
Koden.Utils (in Koden.Utils.dll) Version: 1.1.6453.26060
Syntaxpublic static Range<T> kTo<T>(
this T start,
T end
)
<ExtensionAttribute>
Public Shared Function kTo(Of T) (
start As T,
end As T
) As Range(Of T)
public:
[ExtensionAttribute]
generic<typename T>
static Range<T>^ kTo(
T start,
T end
)
[<ExtensionAttribute>]
static member kTo :
start : 'T *
end : 'T -> Range<'T>
Parameters
- start
- Type: T
Start of range. - end
- Type: T
End of range.
Type Parameters
- T
- Type of the values
Return Value
Type:
RangeTAn inclusive range between the start point and the end point.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type . 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).
See Also