blob: eef684a96ab0ee3d3ca727e851d800381233a8ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
//
// System.Web.UI.ValidatorCollection.cs
//
// Authors:
// Duncan Mak (duncan@ximian.com)
// Gonzalo Paniagua Javier (gonzalo@ximian.com)
//
// (C) 2002 Ximian, Inc. (http://www.ximian.com)
using System;
using System.Collections;
namespace System.Web.UI {
public sealed class ValidatorCollection : ICollection, IEnumerable
{
private ArrayList _validators;
public ValidatorCollection ()
{
_validators = new ArrayList ();
}
public int Count {
get { return _validators.Count; }
}
public bool IsReadOnly {
get { return _validators.IsReadOnly; }
}
public bool IsSynchronized {
get { return _validators.IsSynchronized; }
}
public IValidator this [int index] {
get { return (IValidator) _validators [index]; }
}
public object SyncRoot {
get { return this; }
}
public void Add (IValidator validator)
{
_validators.Add (validator);
}
public bool Contains (IValidator validator)
{
return _validators.Contains (validator);
}
public void CopyTo (Array array, int index)
{
_validators.CopyTo (array, index);
}
public IEnumerator GetEnumerator ()
{
return _validators.GetEnumerator ();
}
public void Remove (IValidator validator)
{
_validators.Remove (validator);
}
}
}
|