Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 6a90d296 authored by Michael KRISPER's avatar Michael KRISPER
Browse files

EnumerableExtension: Comments

parent 446cb418
No related branches found
No related tags found
No related merge requests found
......@@ -112,8 +112,9 @@ namespace TUGraz.VectoCommon.Utils
}
/// <summary>
/// Get the first two adjacent items where the predicate changes from true to false.
/// If the predicate never gets true, the last 2 elements are returned.
/// Get the first two items where the predicate changes from true to false.
/// If the predicate is always true, the last 2 elements are returned.
/// If the predicate is always false, the first 2 elements are returned.
/// </summary>
public static Tuple<T, T> GetSection<T>(this IEnumerable<T> self, Func<T, bool> skip, out int index,
string message = null)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment