Ejemplo n.º 1
0
 static void Add(ListStringCollection collection, int i, string value)
 {
     while (collection.Count <= i)
     {
         collection.Add(null);
     }
     collection[i] = value;
 }
Ejemplo n.º 2
0
            static ListStringCollection Build(IDictionary <int, string> dict)
            {
                var list = new ListStringCollection();

                foreach (var kvp in dict)
                {
                    Add(list, kvp.Key, kvp.Value);
                }
                return(list);
            }