2 // Microsoft.Web.Services.Routing.ViaCollection.cs
4 // Author: Daniel Kornhauser <dkor@alum.mit.edu>
6 // Copyright (C) Ximian, Inc. 2003
10 using System
.Collections
;
12 namespace Microsoft
.Web
.Services
.Routing
{
14 public class ViaCollection
: ICollection
, IEnumerable
, ICloneable
18 public ViaCollection ()
20 list
= new ArrayList ();
23 ViaCollection (ArrayList list
)
30 get { return list.Count; }
34 public bool IsSynchronized
{
35 get { return list.IsSynchronized; }
39 public Via
this [int filter
] {
41 return (Via
) list
[filter
];
49 public virtual object SyncRoot
{
55 public int Add (Via via
)
57 return list
.Add (via
);
60 public virtual object Clone ()
62 return new ViaCollection (list
);
65 public virtual void CopyTo (Array array
, int index
)
67 list
.CopyTo(array
, index
);
70 public virtual IEnumerator
GetEnumerator ()
72 return list
.GetEnumerator();
75 public void Insert (int index
, Via via
)
77 list
.Insert(index
, via
);
80 public void InsertRange (int index
, ViaCollection collection
)
82 list
.InsertRange(index
, collection
);
85 public void RemoveAt (int index
)