Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ConverterList.cs
Go to the documentation of this file.
3
5
6internal sealed class ConverterList : IList<JsonConverter>, ICollection<JsonConverter>, IEnumerable<JsonConverter>, IEnumerable
7{
9
11
12 public JsonConverter this[int index]
13 {
14 get
15 {
16 return _list[index];
17 }
18 set
19 {
20 if (value == null)
21 {
22 throw new ArgumentNullException("value");
23 }
25 _list[index] = value;
26 }
27 }
28
29 public int Count => _list.Count;
30
31 public bool IsReadOnly => false;
32
37
43
44 public void Add(JsonConverter item)
45 {
46 if (item == null)
47 {
48 throw new ArgumentNullException("item");
49 }
51 _list.Add(item);
52 }
53
54 public void Clear()
55 {
57 _list.Clear();
58 }
59
61 {
62 return _list.Contains(item);
63 }
64
66 {
68 }
69
74
76 {
77 return _list.IndexOf(item);
78 }
79
80 public void Insert(int index, JsonConverter item)
81 {
82 if (item == null)
83 {
84 throw new ArgumentNullException("item");
85 }
87 _list.Insert(index, item);
88 }
89
91 {
93 return _list.Remove(item);
94 }
95
96 public void RemoveAt(int index)
97 {
99 _list.RemoveAt(index);
100 }
101
106}
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)
void CopyTo(KeyValuePair< TKey, TValue >[] array, int index)
bool ICollection< KeyValuePair< TKey, TValue > >. Contains(KeyValuePair< TKey, TValue > keyValuePair)
void Add(TKey key, TValue value)
readonly JsonSerializerOptions _options
void CopyTo(JsonConverter[] array, int arrayIndex)
void Insert(int index, JsonConverter item)
ConverterList(JsonSerializerOptions options)
ConverterList(JsonSerializerOptions options, ConverterList source)
IEnumerator< JsonConverter > GetEnumerator()
readonly List< JsonConverter > _list
new IEnumerator< T > GetEnumerator()