Commit Graph
220 Commits
Author SHA1 Message Date
Marek Safar f1790decb8 [linq] Use hashtable lookup instead of linear scan for groupby keys. Fixes #18673 2014-04-30 11:55:17 +02:00
Blewzman 3eae2c2407 Support IReadOnlyList in System.Linq.Enumerable.ElementAt and ElementAtOrDefault - with additional unit tests. 2013-12-05 19:35:35 +01:00
Marek Safar 521a61ae5d [linq] Enumerable.Join and GroupJoin needs to ignore null keys. Fixes #16530 2013-12-02 19:03:37 +01:00
Marek Safar f0af91e211 Apply 9dc360146f to all where methods 2013-03-25 14:16:35 +01:00
Marek Safar 9dc360146f Add optimized where iterator for arrays 2013-03-24 15:03:22 +01:00
Rodrigo Kumpera 1b92a4148c Since MOBILE implies NET_4_* now, take this into account and simplify our ifdefs. 2013-02-11 18:42:18 -05:00
Rodrigo Kumpera 486ee8d8f4 Kill the MOONLIGHT define in System.Core. 2013-02-11 13:01:10 -05:00
bprzygoda 6d26bd6838 Wrapped IEnumerable extensions InvalidOperationException throws into factory methods.
Fixed incorrect messages for Average methods.
2012-11-13 09:49:17 +01:00
bprzygoda eb2232d372 Looked through all InvalidOperationException thrown by IEnumerable Linq extension methods, and added messages according to ms implementation.
In case of methods with predicate/selector, message is: 'Sequence contains no matching elements', wheras ms implementation just yields 'Sequence contains no elements, because it just calls predicateless/selectorless methods after filtering out the collection.
2012-11-13 07:12:02 +01:00
Andres G. Aragoneses caf7a8b2c0 [Linq] Return a clearer exception message for Enumerable<T>.First()'s IOE
This method was using the empty constructor (no message) of
InvalidOperationException if no element matched the predicate.
This meant that the message bubbled up would be a bit confusing:
"Operation is not valid due to the current state of the object".

This commit makes Mono match MS.NET by throwing "Sequence contains
no matching element"
2012-11-12 18:34:44 +00:00
Rodrigo Kumpera 2020ed6596 Make LINQ sort work with Full AOT. 2012-11-09 13:09:14 -05:00
Rodrigo Kumpera a219404ffc Use Function<T>:Identity instead of an inline lambda. Fixes 3627. 2012-11-07 13:38:55 -05:00
Rodrigo Kumpera 4fd392a280 Add workaround to make LINQ 4 Objects order by work under full-aot. 2012-11-07 13:38:44 -05:00
Sebastien Pouliot 63af5d90f1 Avoid multiple potential full-AOT failures with LINQ Enumerable. Fix bug #3285 2012-11-07 13:38:33 -05:00
Sebastien Pouliot 87f45773c0 Avoid using PredicateOf<T>.Always since it does not work with full-aot. Fix bug #682757... 2012-11-07 13:38:15 -05:00
Miguel de Icaza 58cb859143 Bring Parallel LINQ to the Mobile profile 2012-11-06 18:18:12 -05:00
Jeffrey Stedfast f4822194a5 [Linq] Minor fixup to use elements.Length instead of indexes.Length 2012-10-16 11:37:18 -04:00
Jeffrey Stedfast e39fb868a1 Modified the Linq Sort() to re-use the Array.Sort() 2012-10-12 15:55:31 -04:00
Jérémie Laval 551ca84754 [System.Core] Fix compare bug in PLinq's Contains implementation 2012-09-06 13:23:07 +01:00
Jérémie Laval 9711161a2b [System.Core] Remove Max/Min generic indirection 2012-09-06 10:27:08 +01:00
Jérémie Laval fffedc5195 [System.Core] Remove generic indirection for Count/LongCount 2012-09-05 16:41:01 +01:00
Jérémie Laval 02d23e2e36 [System.Core] Remove a source of generic indirection for GroupBy 2012-09-05 14:41:46 +01:00
Jérémie Laval bc2a63cd96 [System.Core] Returns false in SequenceEqual when the two sequences size are different 2012-09-04 16:36:36 +01:00
Jérémie Laval e20f084264 [System.Core] Remove generic indirection 2012-09-04 16:06:24 +01:00
Jérémie Laval f05ce51264 [System.Core] Remove generic indirection for ToDictionary 2012-09-04 12:15:40 +01:00
Jérémie Laval 7a049e547c [System.Core] Remove generic indirection for ToArray 2012-09-04 12:15:36 +01:00
Jérémie Laval db21dd426b [System.Core] Remove generic indirection for ToList 2012-09-04 12:15:33 +01:00
Jb Evain c89d6f1050 Fix queryable enumerable expression transformation 2011-06-23 00:32:27 +02:00
Jb Evain c42ae14d7b Don't emit null queryable constants when rewriting linq queries, fix #701187 2011-06-23 00:18:23 +02:00
Rolf Bjarne Kvinge f64261401d Fix many corcompare issues for moonlight 2011-03-31 16:05:03 +02:00
Marek Safar 0bed23d764 Optimize Enumerable::ToArray 2011-02-08 13:56:22 +00:00
Jérémie Laval beddbef60a Fix overflow checking in PLinq Range operator 2011-01-26 17:50:09 +00:00
Geoff Norton 16d4fd790b Further .NET 4.0 ification of the mobile profile 2011-01-25 20:10:54 -05:00
Jb Evain cb3f41ca57 [linq] Fix Reverse for IList implementors 2011-01-26 00:08:11 +01:00
Jb Evain bce7739486 [linq] Fix overflow check for Count 2011-01-25 23:47:58 +01:00
Jb Evain f224ec361f [linq] fix Range extreme boundaries 2011-01-25 23:45:44 +01:00
Jb Evain 812c108cd3 [LINQ] Fix non generic AsQueryable issue #661462 2010-12-30 16:21:40 +01:00
Jérémie Laval 5976833aee Sys.Core parameters fixup 2010-12-15 17:43:55 +00:00
Marek Safar bd05c6c836 Some .net 4.0 api compatibility fixes 2010-12-15 11:12:07 +00:00
Jérémie Laval 6c7937ec44 [PLinq] Detect when AsParallel is called multiple time in a query and simply reuse the existing ParallelQuery object 2010-12-09 16:00:14 +00:00
Jérémie Laval ac405597eb [PLinq] Add dummy GetEnumerator override in OrderedParallelQuery to make gui-compare happy 2010-08-26 13:49:11 +01:00
Jérémie Laval 0da162b9f2 [PLinq] Include Cancellation checks deeper in the pipeline processing 2010-08-26 13:45:50 +01:00
Jérémie Laval 68c86d5333 [PLinq] Use default comparer instead of throwing an ANE in PLinq operators 2010-08-25 13:17:42 +01:00
Jérémie Laval 7c5522b789 [PLinq] Implement GroupBy operator 2010-08-24 17:38:18 +01:00
Jérémie Laval a6815ab804 [PLinq] Plug in QueryJoinNode for Join operator 2010-08-24 14:09:08 +01:00
Jérémie Laval f00afa22f2 [PLinq] Add implementation of Take/TakeWhile operators (including corresponding query node and unit tests) 2010-08-20 14:48:21 +01:00
Jb Evain d591966d45 [Fix] Enumerable.Except: return a duplicate free set. Fix bug #611821. 2010-08-19 12:37:24 +02:00
Jérémie Laval ccea4ec859 [PLinq] Tune SkipWhile operator, re-enable its unit tests 2010-08-18 10:33:17 +01:00
Jérémie Laval 96a8f92359 [PLinq] Reflect directory hierarchy change on namespace names 2010-08-18 09:25:25 +01:00
Jérémie Laval d3048467db [PLinq] Move NET_4_0 define check under licence text 2010-08-17 18:01:15 +01:00