blob: 4a8c5c7664e3bba6328818c2d281725086c6d51e (
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
//
// System.ComponentModel.AttributeCollection.cs
//
// Author: Rodrigo Moya (rodrigo@ximian.com)
//
// (C) Ximian, Inc.
//
using System;
using System.Collections;
namespace System.ComponentModel
{
public class AttributeCollection : ICollection, IEnumerable
{
private ArrayList attrList;
public static readonly AttributeCollection Empty;
public AttributeCollection (Attribute[] attributes) {
for (int i = 0; i < attributes.Length; i++)
attrList.Add (attributes[i]);
}
public bool Contains (Attribute attr) {
for (int i = 0; i < attrList.Count; i++) {
if (attrList[i] == attr)
return true;
}
return false;
}
[MonoTODO]
public bool Contains (Attribute[] attributes) {
throw new NotImplementedException ();
}
public void CopyTo (Array array, int index) {
attrList.CopyTo (array, index);
}
public IEnumerator GetEnumerator () {
return attrList.GetEnumerator ();
}
[MonoTODO]
public bool Matches (Attribute attr) {
throw new NotImplementedException ();
}
[MonoTODO]
public bool Matches (Attribute[] attributes) {
throw new NotImplementedException ();
}
[MonoTODO]
protected Attribute GetDefaultAttribute (Type attributeType) {
throw new NotImplementedException ();
}
public bool IsSynchronized {
get {
return attrList.IsSynchronized;
}
}
public object SyncRoot {
get {
return attrList.SyncRoot;
}
}
public int Count {
get {
return attrList.Count;
}
}
public virtual Attribute this[Type type] {
[MonoTODO]
get {
throw new NotImplementedException ();
}
}
public virtual Attribute this[int index] {
get {
return (Attribute) attrList[index];
}
}
}
}
|