Comments
Sort by recent activity
Clive Tong wrote:
IEnumerable<string> namesStartingWithA = new string[] { "a" }.Where<string>(delegate (string n) { ...
Here we rid of (I'm not sure how it should be in English) type inference and lambdas, but extension method (Where) still remain. I need this transform:
IEnumerable<string> namesStartingWithA = Enumerable.Where<string>(new string[] { "a" }, delegate (string n) { ...
/ comments
Clive Tong wrote:
IEnumerable<string> namesStartingWithA = new string[] { "a" }.Where<string>(delegate (string n) { ...
Here we rid of (I'm ...
Well, Clive, thank you very much for the answer!
Оne more question.
How to manage extension methods? I want Reflector to generate old-style call:
IEnumerable<string> namesStartingWithA = Enumerable.Where(
names, delegate(string n) { return n.StartsWith("A"); });
instead of 3.0 syntax:
var namesStartingWithA = names.Where(name => name.StartsWith("A"));
May be, it's worth to add two different items (C# 2.0 and C# 3.0) insted of the only one (C#) in language choise combobox? / comments
Well, Clive, thank you very much for the answer!
Оne more question.
How to manage extension methods? I want Reflector to generate old-style call:
IEnumerable<string> namesStartingWithA = Enum...