-
Notifications
You must be signed in to change notification settings - Fork 36
M_CodeJam_Ranges_CompositeRangeExtensions_ToCompositeRange__1_1
Andrew Koryavchenko edited this page Jun 17, 2018
·
3 revisions
Converts sequence of elements to the composite range.
Namespace: CodeJam.Ranges
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0
C#
public static CompositeRange<T> ToCompositeRange<T>(
this IEnumerable<Range<T>> ranges
)
VB
<ExtensionAttribute>
Public Shared Function ToCompositeRange(Of T) (
ranges As IEnumerable(Of Range(Of T))
) As CompositeRange(Of T)
F#
[<ExtensionAttribute>]
static member ToCompositeRange :
ranges : IEnumerable<Range<'T>> -> CompositeRange<'T>
- ranges
- Type: System.Collections.Generic.IEnumerable(Range(T))
The ranges.
- T
- The type of the range values.
Type: CompositeRange(T)
A new composite range.
In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable(Range(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).
CompositeRangeExtensions Class
ToCompositeRange Overload
CodeJam.Ranges Namespace