internal HttpStaticObjectsCollection Clone()
 {
     HttpStaticObjectsCollection objectss = new HttpStaticObjectsCollection();
     IDictionaryEnumerator enumerator = this._objects.GetEnumerator();
     while (enumerator.MoveNext())
     {
         HttpStaticObjectsEntry entry = (HttpStaticObjectsEntry) enumerator.Value;
         objectss.Add(entry.Name, entry.ObjectType, entry.LateBound);
     }
     return objectss;
 }
        /*
         * Create a copy without copying instances (names and types only)
         */
        internal HttpStaticObjectsCollection Clone() {
            HttpStaticObjectsCollection c = new HttpStaticObjectsCollection();

            IDictionaryEnumerator e = _objects.GetEnumerator();

            while (e.MoveNext()) {
                HttpStaticObjectsEntry entry = (HttpStaticObjectsEntry)e.Value;
                c.Add(entry.Name, entry.ObjectType, entry.LateBound);
            }

            return c;
        }
Exemplo n.º 3
0
        internal HttpStaticObjectsCollection Clone()
        {
            HttpStaticObjectsCollection objectss   = new HttpStaticObjectsCollection();
            IDictionaryEnumerator       enumerator = this._objects.GetEnumerator();

            while (enumerator.MoveNext())
            {
                HttpStaticObjectsEntry entry = (HttpStaticObjectsEntry)enumerator.Value;
                objectss.Add(entry.Name, entry.ObjectType, entry.LateBound);
            }
            return(objectss);
        }
Exemplo n.º 4
0
        /*
         * Create a copy without copying instances (names and types only)
         */
        internal HttpStaticObjectsCollection Clone()
        {
            HttpStaticObjectsCollection c = new HttpStaticObjectsCollection();

            IDictionaryEnumerator e = _objects.GetEnumerator();

            while (e.MoveNext())
            {
                HttpStaticObjectsEntry entry = (HttpStaticObjectsEntry)e.Value;
                c.Add(entry.Name, entry.ObjectType, entry.LateBound);
            }

            return(c);
        }
Exemplo n.º 5
0
        static HttpStaticObjectsCollection MakeStaticCollection(ArrayList list)
        {
            if (list == null || list.Count == 0)
            {
                return(null);
            }

            HttpStaticObjectsCollection coll = new HttpStaticObjectsCollection();

            foreach (ObjectTagBuilder tag in list)
            {
                coll.Add(tag);
            }

            return(coll);
        }
Exemplo n.º 6
0
		static HttpStaticObjectsCollection MakeStaticCollection (ArrayList list)
		{
			if (list == null || list.Count == 0)
				return null;

			HttpStaticObjectsCollection coll = new HttpStaticObjectsCollection ();
			foreach (ObjectTagBuilder tag in list) {
				coll.Add (tag);
			}

			return coll;
		}