Skip to content

M_CodeJam_Collections_QueryableExtensions_Intersect__2_2

Andrew Koryavchenko edited this page Jun 17, 2018 · 1 revision

QueryableExtensions.Intersect(T, TValue) Method (IQueryable(T), Expression(Func(T, Object)), Expression(Func(T, Object)), Expression(Func(T, Boolean)), Expression(Func(T, Boolean)), Range(TValue))

Intersects source by specified values range.

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

Syntax

C#

public static IQueryable<T> Intersect<T, TValue>(
	this IQueryable<T> source,
	Expression<Func<T, Object>> fromValueSelector,
	Expression<Func<T, Object>> toValueSelector,
	Expression<Func<T, bool>> fromInfinityPredicate,
	Expression<Func<T, bool>> toInfinityPredicate,
	Range<TValue> range
)

VB

<ExtensionAttribute>
Public Shared Function Intersect(Of T, TValue) ( 
	source As IQueryable(Of T),
	fromValueSelector As Expression(Of Func(Of T, Object)),
	toValueSelector As Expression(Of Func(Of T, Object)),
	fromInfinityPredicate As Expression(Of Func(Of T, Boolean)),
	toInfinityPredicate As Expression(Of Func(Of T, Boolean)),
	range As Range(Of TValue)
) As IQueryable(Of T)

F#

[<ExtensionAttribute>]
static member Intersect : 
        source : IQueryable<'T> * 
        fromValueSelector : Expression<Func<'T, Object>> * 
        toValueSelector : Expression<Func<'T, Object>> * 
        fromInfinityPredicate : Expression<Func<'T, bool>> * 
        toInfinityPredicate : Expression<Func<'T, bool>> * 
        range : Range<'TValue> -> IQueryable<'T> 

Parameters

 

source
Type: System.Linq.IQueryable(T)
The source.
fromValueSelector
Type: System.Linq.Expressions.Expression(Func(T, Object))
From value selector.
toValueSelector
Type: System.Linq.Expressions.Expression(Func(T, Object))
To value selector.
fromInfinityPredicate
Type: System.Linq.Expressions.Expression(Func(T, Boolean))
From infinity predicate.
toInfinityPredicate
Type: System.Linq.Expressions.Expression(Func(T, Boolean))
To infinity predicate.
range
Type: CodeJam.Ranges.Range(TValue)
The range.

Type Parameters

 

T
TValue
The type of the value.

Return Value

Type: IQueryable(T)
Intersection

Usage Note

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

See Also

Reference

QueryableExtensions Class
Intersect Overload
CodeJam.Collections Namespace

Clone this wiki locally