Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
StringCollection.cs
Go to the documentation of this file.
2
4
6[TypeForwardedFrom("System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
8{
9 private readonly ArrayList data = new ArrayList();
10
11 public string? this[int index]
12 {
13 get
14 {
15 return (string)data[index];
16 }
17 set
18 {
19 data[index] = value;
20 }
21 }
22
23 public int Count => data.Count;
24
25 bool IList.IsReadOnly => false;
26
27 bool IList.IsFixedSize => false;
28
29 public bool IsReadOnly => false;
30
31 public bool IsSynchronized => false;
32
33 public object SyncRoot => data.SyncRoot;
34
35 object? IList.this[int index]
36 {
37 get
38 {
39 return this[index];
40 }
41 set
42 {
43 this[index] = (string)value;
44 }
45 }
46
47 public int Add(string? value)
48 {
49 return data.Add(value);
50 }
51
52 public void AddRange(string[] value)
53 {
54 if (value == null)
55 {
56 throw new ArgumentNullException("value");
57 }
59 }
60
61 public void Clear()
62 {
63 data.Clear();
64 }
65
66 public bool Contains(string? value)
67 {
68 return data.Contains(value);
69 }
70
71 public void CopyTo(string[] array, int index)
72 {
74 }
75
77 {
78 return new StringEnumerator(this);
79 }
80
81 public int IndexOf(string? value)
82 {
83 return data.IndexOf(value);
84 }
85
86 public void Insert(int index, string? value)
87 {
89 }
90
91 public void Remove(string? value)
92 {
94 }
95
96 public void RemoveAt(int index)
97 {
99 }
100
101 int IList.Add(object value)
102 {
103 return Add((string)value);
104 }
105
106 bool IList.Contains(object value)
107 {
108 return Contains((string)value);
109 }
110
111 int IList.IndexOf(object value)
112 {
113 return IndexOf((string)value);
114 }
115
116 void IList.Insert(int index, object value)
117 {
118 Insert(index, (string)value);
119 }
120
121 void IList.Remove(object value)
122 {
123 Remove((string)value);
124 }
125
127 {
129 }
130
135}
virtual void AddRange(ICollection c)
virtual void Remove(object? obj)
virtual IEnumerator GetEnumerator()
virtual int Add(object? value)
virtual void RemoveAt(int index)
virtual bool Contains(object? item)
virtual void CopyTo(Array array)
virtual void Insert(int index, object? value)
virtual int IndexOf(object? value)
void CopyTo(Array array, int index)
void Insert(int index, object? value)
int Add(object? value)
bool Contains(object? value)
void Remove(object? value)
int IndexOf(object? value)