You are here: Symbol Reference > Stimulsoft.Base.Json.Utilities Namespace > CollectionUtils Class > CollectionUtils Methods > IndexOf Method > IndexOf Method (this IEnumerable<TSource>, TSource, IEqualityComparer<TSource>)
Stimulsoft Reports Class Reference
ContentsIndexHome
PreviousUpNext
CollectionUtils.IndexOf Method (this IEnumerable<TSource>, TSource, IEqualityComparer<TSource>)

Returns the index of the first occurrence in a sequence by using a specified IEqualityComparer.

Syntax
C++
C#
Visual Basic
public: int IndexOf<TSource>( this IEnumerable<TSource> list, TSource value, IEqualityComparer<TSource> comparer );
Parameters
Parameters 
Description 
list 
A sequence in which to locate a value. 
value 
The object to locate in the sequence 
comparer 
An equality comparer to compare values. 
TSource 
The type of the elements of source. 
Returns

The zero-based index of the first occurrence of value within the entire sequence, if found; otherwise, –1.

Made with Doc-O-Matic.
What do you think about this topic? Send feedback!
Copyright (c) 2017. All rights reserved.