We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa4b037 commit b0783e0Copy full SHA for b0783e0
1 file changed
Orm/Xtensive.Orm/Core/Extensions/ListExtensions.cs
@@ -17,6 +17,14 @@ namespace Xtensive.Core
17
/// </summary>
18
public static class ListExtensions
19
{
20
+ /// <summary>
21
+ /// Searches for the specified <paramref name="item"/> and returns the zero-based index
22
+ /// of the first occurence within the entire <paramref name="list"/>.
23
+ /// </summary>
24
+ /// <param name="list">An instance implementing <see cref="IReadOnlyList{T}"/> to be searched.</param>
25
+ /// <param name="item">An item to be looked for.</param>
26
+ /// <returns>A zero based index of the specified <paramref name="item"/> if found;
27
+ /// otherwise <c>-1</c>.</returns>
28
public static int IndexOf<T>(this IReadOnlyList<T> list, T item)
29
30
var comparer = EqualityComparer<T>.Default;
0 commit comments