S
S Chapman
In C# 3.0 there will be radical additions:
(#) "select, from, where" keywords allowing to query from SQL, XML,
collections, and more (Language integrated query (LINQ)) - >>Can
appreciate
(#) Object initialization : Customer c = new Customer();
c.Name="James"; becomes Customer c = new Customer { Name="James" }; -(*!!*) Lambda expressions : listOfFoo.Where(delegate(Foo x) { return
x.size>10;}) becomes listOfFoo.Where(x => x.size>10);
(*!!*) Local variable type inference: var x = "hello"; is
interchangeable with string x = "hello";
(*!!*) Anonymous types : var x = new { Name = "James" }
(*!!*) Extension methods (adding methods to classes by including the
this keyword in the first parameter)
(*) C# 3.0 was unveiled at the PDC 2005, and a Preview, with
specifications is available From the MSDN Page (MSDN).
To me it looks like C# is including features (*!!*) that will enable
people to write unreable code. I cannot appreciate why these changes
are necessary. Can anybody convince me otherwise please?
(#) "select, from, where" keywords allowing to query from SQL, XML,
collections, and more (Language integrated query (LINQ)) - >>Can
appreciate
(#) Object initialization : Customer c = new Customer();
c.Name="James"; becomes Customer c = new Customer { Name="James" }; -(*!!*) Lambda expressions : listOfFoo.Where(delegate(Foo x) { return
x.size>10;}) becomes listOfFoo.Where(x => x.size>10);
(*!!*) Local variable type inference: var x = "hello"; is
interchangeable with string x = "hello";
(*!!*) Anonymous types : var x = new { Name = "James" }
(*!!*) Extension methods (adding methods to classes by including the
this keyword in the first parameter)
(*) C# 3.0 was unveiled at the PDC 2005, and a Preview, with
specifications is available From the MSDN Page (MSDN).
To me it looks like C# is including features (*!!*) that will enable
people to write unreable code. I cannot appreciate why these changes
are necessary. Can anybody convince me otherwise please?