Archives
-
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:
-
Implementing Linked Lists in C#
The question is why you need Linked Lists and why it is the foundation of any Abstract Data Structure.