Exemplo n.º 1
0
        public static MyNameObjectCollection CreateNameObjectCollection(int count)
        {
            MyNameObjectCollection nameObjectCollection = new MyNameObjectCollection();

            for (int i = 0; i < count; i++)
            {
                nameObjectCollection.Add("Name_" + i, new Foo("Value_" + i));
            }

            return(nameObjectCollection);
        }
Exemplo n.º 2
0
        public static MyNameObjectCollection CreateNameObjectCollection(int count)
        {
            MyNameObjectCollection nameObjectCollection = new MyNameObjectCollection();

            for (int i = 0; i < count; i++)
            {
                nameObjectCollection.Add("Name_" + i, new Foo("Value_" + i));
            }

            return nameObjectCollection;
        }