Tuesday, June 29, 2004

Cool article on the new C# features

kavitak's WebLog: "The three main ones discussed, among all the others:
- support for generics. Previously, if a collection contained value types, iterating over the elements would cause boxing and unboxing of those items. Now there are IEnumerable/IEnumerator interfaces that are type-safe and use generics to avoid this penalty.
- partial types. For the traditional C++ programmer, this is not new. You can now split the definition and implementation of a class or a struct across multiple files.
- and the coolest -- Anonymous delegates -- you dont need to create a class or a method just for the sake of using a delegate. You can now have anonymous methods and inline the code! "

MSDN Article:

No comments: