Skip to content

Commit b0783e0

Browse files
committed
Add xml comment to ListExtensions.IndexOf method
1 parent aa4b037 commit b0783e0

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Orm/Xtensive.Orm/Core/Extensions/ListExtensions.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ namespace Xtensive.Core
1717
/// </summary>
1818
public static class ListExtensions
1919
{
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>
2028
public static int IndexOf<T>(this IReadOnlyList<T> list, T item)
2129
{
2230
var comparer = EqualityComparer<T>.Default;

0 commit comments

Comments
 (0)