Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
XmlSchemaObjectCollection.cs
Go to the documentation of this file.
2
3namespace System.Xml.Schema;
4
6{
7 private readonly XmlSchemaObject _parent;
8
9 public virtual XmlSchemaObject this[int index]
10 {
11 get
12 {
13 return (XmlSchemaObject)base.List[index];
14 }
15 set
16 {
17 base.List[index] = value;
18 }
19 }
20
22 {
23 }
24
26 {
27 _parent = parent;
28 }
29
31 {
32 return new XmlSchemaObjectEnumerator(base.InnerList.GetEnumerator());
33 }
34
36 {
37 return base.List.Add(item);
38 }
39
40 public void Insert(int index, XmlSchemaObject item)
41 {
42 base.List.Insert(index, item);
43 }
44
46 {
47 return base.List.IndexOf(item);
48 }
49
51 {
52 return base.List.Contains(item);
53 }
54
56 {
57 base.List.Remove(item);
58 }
59
60 public void CopyTo(XmlSchemaObject[] array, int index)
61 {
62 base.List.CopyTo(array, index);
63 }
64
65 protected override void OnInsert(int index, object? item)
66 {
67 if (_parent != null)
68 {
69 _parent.OnAdd(this, item);
70 }
71 }
72
73 protected override void OnSet(int index, object? oldValue, object? newValue)
74 {
75 if (_parent != null)
76 {
78 _parent.OnAdd(this, newValue);
79 }
80 }
81
82 protected override void OnClear()
83 {
84 if (_parent != null)
85 {
86 _parent.OnClear(this);
87 }
88 }
89
90 protected override void OnRemove(int index, object? item)
91 {
92 if (_parent != null)
93 {
94 _parent.OnRemove(this, item);
95 }
96 }
97
104
106 {
107 base.InnerList.InsertRange(0, collToAdd);
108 }
109}
void CopyTo(XmlSchemaObject[] array, int index)
override void OnSet(int index, object? oldValue, object? newValue)
override void OnRemove(int index, object? item)
override void OnInsert(int index, object? item)
void Insert(int index, XmlSchemaObject item)
void Add(XmlSchemaObjectCollection collToAdd)
virtual void OnRemove(XmlSchemaObjectCollection container, object item)
virtual void OnClear(XmlSchemaObjectCollection container)
virtual void OnAdd(XmlSchemaObjectCollection container, object item)