Wie, um einen Mehrwert für Komplexe Wörterbuch?

Als ich wissen, die Methode Werte hinzufügen zum Wörterbuch, wie unten beschrieben.

    Dictionary<string, string> myDict = new Dictionary<string, string>();

    myDict.Add("a", "1");

Wenn ich als "myDictDict" wie der Stil unten.

IDictionary<string, Dictionary<string, string>> myDictDict = new Dictionary<string, Dictionary<string, string>>();

myDictDict .Add("hello", "tom","cat"); ?//How to add value here.

danke.

InformationsquelleAutor Nano HE | 2009-12-28
Schreibe einen Kommentar