Enhanced C#
Language of your choice: library documentation

Documentation moved to ecsharp.net

GitHub doesn't support HTTP redirects, so you'll be redirected in 3 seconds.

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Static Public Member Functions | List of all members
Loyc.Collections.LinqToCollections Class Reference

Work in progress. This class will enhance LINQ-to-Objects with type-preserving and/or higher-performance extension methods. More...


Source file:

Remarks

Work in progress. This class will enhance LINQ-to-Objects with type-preserving and/or higher-performance extension methods.

For example, the Enumerable.Last(IEnumerable{T}) extension method scans the entire list before returning the last item, while Last(IReadOnlyList{T}) and Last(IList{T}) simply return the last item directly.

Static Public Member Functions

static int Count< T > (this IList< T > list)
 
static T Last< T > (this IList< T > list)
 
static T LastOrDefault< T > (this IList< T > list, T defaultValue=default(T))
 
static int Count< T > (this IReadOnlyList< T > list)
 
static T Last< T > (this IReadOnlyList< T > list)
 
static T LastOrDefault< T > (this IReadOnlyList< T > list, T defaultValue=default(T))