blob: f12aaf9c96c67a1347e69eb7f4506d0f775005c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// CS0411: The type arguments for method `System.Linq.Enumerable.OrderBy<TSource,TKey>(this System.Collections.Generic.IEnumerable<TSource>, System.Func<TSource,TKey>)' cannot be inferred from the usage. Try specifying the type arguments explicitly
// Line: 20
using System.Collections.Generic;
using System.Linq;
public class C
{
public string Name ()
{
return "aa";
}
}
class Z
{
void Test ()
{
List<C> l = null;
var r = l.OrderBy (f => f.Name).ToList ();
}
}
|