Skip to content

M_CodeJam_Ranges_CompositeRangeExtensions_GetComplementation__2

Andrew Koryavchenko edited this page Jun 17, 2018 · 3 revisions

CompositeRangeExtensions.GetComplementation(T, TKey) Method (Range(T, TKey))

Returns complementation composite range. Result range contains result of (infinityRange.Exclude(range).

Namespace: CodeJam.Ranges
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

C#

public static CompositeRange<T> GetComplementation<T, TKey>(
	this Range<T, TKey> range
)

VB

<ExtensionAttribute>
Public Shared Function GetComplementation(Of T, TKey) ( 
	range As Range(Of T, TKey)
) As CompositeRange(Of T)

F#

[<ExtensionAttribute>]
static member GetComplementation : 
        range : Range<'T, 'TKey> -> CompositeRange<'T> 

Parameters

 

range
Type: CodeJam.Ranges.Range(T, TKey)
The source range.

Type Parameters

 

T
The type of the range values.
TKey
The type of the range key

Return Value

Type: CompositeRange(T)
Complementation composite range.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Range(T, TKey). 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

Reference

CompositeRangeExtensions Class
GetComplementation Overload
CodeJam.Ranges Namespace

Clone this wiki locally