Globals
Stimulsoft
System
Collections
LinqHelper
Class LinqHelper<T>
Type parameters
T
Hierarchy
Enumerable
<
T
>
LinqHelper
Index
Constructors
constructor
Accessors
list
source
Methods
[
Symbol.iterator]
aggregate
aggregate2
all
any
average
cast
concat
contains
copy
To
count2
default
IfEmpty
distinct
except
first
first
OrDefault
full
Outer
Join
group
By
group
Join
join2
last
OrDefault
max
min
order
By
order
ByDescending
select
select
Many
select
Many2
sequence
Equal
skip
sum
take
to
Array
to
Dictionary
to
List
to
Lookup
union
where
zip
repeat
Constructors
constructor
new
Linq
Helper
(
source
:
Iterable
<
T
>
)
:
LinqHelper
Parameters
source:
Iterable
<
T
>
Returns
LinqHelper
Accessors
list
get
list
(
)
:
List
<
T
>
Returns
List
<
T
>
Protected
source
get
source
(
)
:
Iterable
<
T
>
Returns
Iterable
<
T
>
Methods
[
Symbol.iterator]
[
Symbol.iterator]
(
)
:
Generator
<
T
,
void
,
undefined
>
Returns
Generator
<
T
,
void
,
undefined
>
aggregate
aggregate
(
func
:
function
)
:
T
Parameters
func:
function
(
av
:
T
, e
:
T
)
:
T
Parameters
av:
T
e:
T
Returns
T
Returns
T
aggregate2
aggregate2
(
seed
:
T
, func
:
function
)
:
T
Parameters
seed:
T
func:
function
(
av
:
T
, e
:
T
)
:
T
Parameters
av:
T
e:
T
Returns
T
Returns
T
all
all
(
predicate
?:
function
, __this
?:
any
)
:
boolean
Parameters
Optional
predicate:
function
(
value
:
T
)
:
boolean
Parameters
value:
T
Returns
boolean
Optional
__this:
any
Returns
boolean
any
any
(
predicate
?:
function
, __this
?:
any
)
:
boolean
Parameters
Optional
predicate:
function
(
value
:
T
)
:
boolean
Parameters
value:
T
Returns
boolean
Optional
__this:
any
Returns
boolean
average
average
(
selector
?:
function
)
:
number
Parameters
Optional
selector:
function
(
value
:
T
)
:
number
Parameters
value:
T
Returns
number
Returns
number
cast
cast<S>
(
)
:
LinqHelper
<
S
>
Type parameters
S
Returns
LinqHelper
<
S
>
concat
concat
(
second
:
Iterable
<
T
>
)
:
LinqHelper
<
T
>
Parameters
second:
Iterable
<
T
>
Returns
LinqHelper
<
T
>
contains
contains
(
item
:
T
)
:
boolean
Parameters
item:
T
Returns
boolean
copy
To
copy
To
(
array
:
T
[]
, index
:
number
)
:
void
Parameters
array:
T
[]
index:
number
Returns
void
count2
count2
(
selector
?:
function
, __this
?:
any
)
:
number
Parameters
Optional
selector:
function
(
value
:
T
)
:
boolean
Parameters
value:
T
Returns
boolean
Optional
__this:
any
Returns
number
default
IfEmpty
default
IfEmpty
(
)
:
LinqHelper
<
T
>
Returns
LinqHelper
<
T
>
distinct
distinct
(
)
:
LinqHelper
<
T
>
Returns
LinqHelper
<
T
>
except
except
(
second
:
Iterable
<
T
>
)
:
LinqHelper
<
T
>
Parameters
second:
Iterable
<
T
>
Returns
LinqHelper
<
T
>
first
first
(
selector
?:
function
, __this
?:
any
)
:
T
Parameters
Optional
selector:
function
(
value
:
T
)
:
boolean
Parameters
value:
T
Returns
boolean
Optional
__this:
any
Returns
T
first
OrDefault
first
OrDefault
(
predicate
?:
function
)
:
T
Parameters
Optional
predicate:
function
(
value
:
T
)
:
boolean
Parameters
value:
T
Returns
boolean
Returns
T
full
Outer
Join
full
Outer
Join<K, V, Z>
(
inner
:
Iterable
<
V
>
, outerKeySelector
:
function
, innerKeySelector
:
function
, resultSelector
:
function
, __this
?:
any
)
:
LinqHelper
<
Z
>
Type parameters
K
V
Z
Parameters
inner:
Iterable
<
V
>
outerKeySelector:
function
(
value
:
T
)
:
K
Parameters
value:
T
Returns
K
innerKeySelector:
function
(
value
:
V
)
:
K
Parameters
value:
V
Returns
K
resultSelector:
function
(
value1
:
T
, value2
:
V
)
:
Z
Parameters
value1:
T
value2:
V
Returns
Z
Optional
__this:
any
Returns
LinqHelper
<
Z
>
group
By
group
By<K>
(
keySelector
:
function
, comparer
?:
IEqualityComparer
<
K
>
, __this
?:
any
)
:
List
<
Grouping
<
K
,
T
>
>
Type parameters
K
Parameters
keySelector:
function
(
value
:
T
)
:
K
Parameters
value:
T
Returns
K
Optional
comparer:
IEqualityComparer
<
K
>
Optional
__this:
any
Returns
List
<
Grouping
<
K
,
T
>
>
group
Join
group
Join<U, K, V>
(
inner
:
Iterable
<
U
>
, outerKeySelector
:
function
, innerKeySelector
:
function
, resultSelector
:
function
, __this
?:
any
)
:
LinqHelper
<
V
>
Type parameters
U
K
V
Parameters
inner:
Iterable
<
U
>
outerKeySelector:
function
(
value
:
T
)
:
K
Parameters
value:
T
Returns
K
innerKeySelector:
function
(
value
:
U
)
:
K
Parameters
value:
U
Returns
K
resultSelector:
function
(
value1
:
T
, value2
:
List
<
U
>
)
:
V
Parameters
value1:
T
value2:
List
<
U
>
Returns
V
Optional
__this:
any
Returns
LinqHelper
<
V
>
join2
join2<U, K, V>
(
inner
:
Iterable
<
U
>
, outerKeySelector
:
function
, innerKeySelector
:
function
, resultSelector
:
function
, __this
?:
any
)
:
LinqHelper
<
V
>
Type parameters
U
K
V
Parameters
inner:
Iterable
<
U
>
outerKeySelector:
function
(
value
:
T
)
:
K
Parameters
value:
T
Returns
K
innerKeySelector:
function
(
value
:
U
)
:
K
Parameters
value:
U
Returns
K
resultSelector:
function
(
value1
:
T
, value2
:
U
)
:
V
Parameters
value1:
T
value2:
U
Returns
V
Optional
__this:
any
Returns
LinqHelper
<
V
>
last
OrDefault
last
OrDefault
(
)
:
T
Returns
T
max
max<S>
(
selector
?:
function
)
:
S
Type parameters
S
Parameters
Optional
selector:
function
(
value
:
T
)
:
S
Parameters
value:
T
Returns
S
Returns
S
min
min<S>
(
selector
?:
function
)
:
S
Type parameters
S
Parameters
Optional
selector:
function
(
value
:
T
)
:
S
Parameters
value:
T
Returns
S
Returns
S
order
By
order
By<K>
(
keySelector
:
function
, comparer
?:
IComparer
<
K
>
)
:
LinqHelper
<
T
>
Type parameters
K
Parameters
keySelector:
function
(
value
:
T
)
:
K
Parameters
value:
T
Returns
K
Optional
comparer:
IComparer
<
K
>
Returns
LinqHelper
<
T
>
order
ByDescending
order
ByDescending<K>
(
keySelector
:
function
, comparer
?:
IComparer
<
K
>
)
:
LinqHelper
<
T
>
Type parameters
K
Parameters
keySelector:
function
(
value
:
T
)
:
K
Parameters
value:
T
Returns
K
Optional
comparer:
IComparer
<
K
>
Returns
LinqHelper
<
T
>
select
select<S>
(
selector
:
function
, __this
?:
any
)
:
LinqHelper
<
S
>
Type parameters
S
Parameters
selector:
function
(
value
:
T
)
:
S
Parameters
value:
T
Returns
S
Optional
__this:
any
Returns
LinqHelper
<
S
>
select
Many
select
Many<S>
(
selector
:
function
, __this
?:
any
)
:
LinqHelper
<
S
>
Type parameters
S
Parameters
selector:
function
(
value
:
T
)
:
List
<
S
>
Parameters
value:
T
Returns
List
<
S
>
Optional
__this:
any
Returns
LinqHelper
<
S
>
select
Many2
select
Many2<C, V>
(
collectionSelector
:
function
, resultSelector
:
function
, __this
?:
any
)
:
LinqHelper
<
V
>
Type parameters
C
V
Parameters
collectionSelector:
function
(
value
:
T
)
:
List
<
C
>
Parameters
value:
T
Returns
List
<
C
>
resultSelector:
function
(
value1
:
T
, value2
:
C
)
:
V
Parameters
value1:
T
value2:
C
Returns
V
Optional
__this:
any
Returns
LinqHelper
<
V
>
sequence
Equal
sequence
Equal
(
second
:
Iterable
<
T
>
)
:
boolean
Parameters
second:
Iterable
<
T
>
Returns
boolean
skip
skip
(
count
:
number
)
:
LinqHelper
<
T
>
Parameters
count:
number
Returns
LinqHelper
<
T
>
sum
sum
(
selector
?:
function
)
:
number
Parameters
Optional
selector:
function
(
value
:
T
)
:
number
Parameters
value:
T
Returns
number
Returns
number
take
take
(
count
:
number
)
:
LinqHelper
<
T
>
Parameters
count:
number
Returns
LinqHelper
<
T
>
to
Array
to
Array
(
)
:
T
[]
Returns
T
[]
to
Dictionary
to
Dictionary<K, V>
(
keySelector
:
function
, elementSelector
:
function
)
:
Dictionary
<
K
,
V
>
Type parameters
K
V
Parameters
keySelector:
function
(
item
:
T
)
:
K
Parameters
item:
T
Returns
K
elementSelector:
function
(
item
:
T
)
:
V
Parameters
item:
T
Returns
V
Returns
Dictionary
<
K
,
V
>
to
List
to
List
(
)
:
List
<
T
>
Returns
List
<
T
>
to
Lookup
to
Lookup<K>
(
keySelector
:
function
, __this
?:
any
)
:
Hashtable
Type parameters
K
Parameters
keySelector:
function
(
value
:
T
)
:
K
Parameters
value:
T
Returns
K
Optional
__this:
any
Returns
Hashtable
union
union
(
second
:
Iterable
<
T
>
)
:
LinqHelper
<
T
>
Parameters
second:
Iterable
<
T
>
Returns
LinqHelper
<
T
>
where
where
(
predicate
:
function
, __this
?:
any
)
:
LinqHelper
<
T
>
Parameters
predicate:
function
(
value
:
T
, index
:
number
)
:
boolean
Parameters
value:
T
index:
number
Returns
boolean
Optional
__this:
any
Returns
LinqHelper
<
T
>
zip
zip<S, R>
(
second
:
Iterable
<
S
>
, resultSelector
:
function
)
:
LinqHelper
<
R
>
Type parameters
S
R
Parameters
second:
Iterable
<
S
>
resultSelector:
function
(
first
:
T
, second
:
S
)
:
R
Parameters
first:
T
second:
S
Returns
R
Returns
LinqHelper
<
R
>
Static
repeat
repeat<T>
(
element
:
T
, count
:
number
)
:
LinqHelper
<
T
>
Type parameters
T
Parameters
element:
T
count:
number
Returns
LinqHelper
<
T
>
Globals
Sti
Options
Stimulsoft
Base
Blockly
Dashboard
Data
Designer
Report
System
Collections
Crypt
Data
Drawing
Globalization
IO
Internals
Text
Xml
Viewer
Collection
Base
Dictionary
Dictionary
Entry
Enumerable
Grouping
Hashtable
Linq
Helper
constructor
list
source
[
Symbol.iterator]
aggregate
aggregate2
all
any
average
cast
concat
contains
copy
To
count2
default
IfEmpty
distinct
except
first
first
OrDefault
full
Outer
Join
group
By
group
Join
join2
last
OrDefault
max
min
order
By
order
ByDescending
select
select
Many
select
Many2
sequence
Equal
skip
sum
take
to
Array
to
Dictionary
to
List
to
Lookup
union
where
zip
repeat
List
Queue
Stack
ICollection
IComparer
IEnumerator
IEquality
Comparer
Date
Time
ICollection
IComparer
IEnumerator
IEquality
Comparer
Generated using
TypeDoc