More C# 2.0 usages (generics, anonymous methods)

Posted by: Patrik Löwendahls shout, on 18 Jan 2006 | View original | Bookmarked: 0 time(s)

In an earlier post I talked about a simple scenario where we could use generics. In this post I'll expand a bit on that and look at the List<T> class and what you can do with generics in cooperation with anonymous methods and delegates.   The generic List<T> class is the predecessor of the ArrayList class. The former was weakly typed and could only store System.Object which led to runtime casting and boxing scenarios.   The List<T> class helps us out here and creates...

Category: C# | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 2224 | Hits: 229

Similar Posts

  • Not all AnonymousMethods are the same more
  • Being more productive with C# 3.0 more
  • New "Orcas" Language Feature: Lambda Expressions more
  • C# 3.0 Feature Notes more
  • Rotor 2.0 more
  • Programming Visual CSharp 2005 more
  • Demystifying C# 3.0 - Part 3: Extension Methods more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD