Having Fun with Anonymous types and Extension Methods in C# 3.0 (www.lowendahl.net)
published 2 years, 2 months ago, submitted by
lowendahl(740) 2 years, 2 months ago
In C# 3.0 Microsoft has added some neat dynamic features while still being straticly typed. List and dictionary initilizers is one such dynamic feature. In this post Patrik Löwendahl describes how to use some other C# 3.0 features to create a variation of the provided List / Dictionary initilizers. With anonymous types, extension methods and fluent interface dictionaries can now be simply initilized.
|
category: C#
|
Views: 15
tags:
C# another
Everyones tags:
Your Tags: