Contents tagged with C#
-
Single Key Multiple Values Data Structure for one to many mapping
Dictionaries would not allow duplicate keys. You can obviously create a Dictionary like Dictionary<int, List<string>>, but ToLookup extension method saves you time in a way that you just have to tell it how keys are calculated and it'd make the DS for you. Additionally it' gives you functionality to iterate over the groupings etc.
-
The Template Method Design Pattern using C# .Net
First of all I'll just put this pattern in context and describe its intent as in the GOF book:
-
Difference between Factory Method and Abstract Factory design patterns using C#.Net
I have moved this blog to http://pragmaticdevs.wordpress.com/