Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros
EmptyReadOnlyDictionaryInternal.cs
Go to the documentation of this file.
1namespace System.Collections;
2
4{
6 {
7 public object Current
8 {
9 get
10 {
12 }
13 }
14
15 public object Key
16 {
17 get
18 {
20 }
21 }
22
23 public object Value
24 {
25 get
26 {
28 }
29 }
30
38
39 public bool MoveNext()
40 {
41 return false;
42 }
43
44 public void Reset()
45 {
46 }
47 }
48
49 public int Count => 0;
50
51 public object SyncRoot => this;
52
53 public bool IsSynchronized => false;
54
55 public object this[object key]
56 {
57 get
58 {
59 if (key == null)
60 {
62 }
63 return null;
64 }
65 set
66 {
67 if (key == null)
68 {
70 }
71 if (!key.GetType().IsSerializable)
72 {
74 }
75 if (value != null && !value.GetType().IsSerializable)
76 {
78 }
80 }
81 }
82
83 public ICollection Keys => Array.Empty<object>();
84
85 public ICollection Values => Array.Empty<object>();
86
87 public bool IsReadOnly => true;
88
89 public bool IsFixedSize => true;
90
95
96 public void CopyTo(Array array, int index)
97 {
98 if (array == null)
99 {
100 throw new ArgumentNullException("array");
101 }
102 if (array.Rank != 1)
103 {
105 }
106 if (index < 0)
107 {
109 }
110 if (array.Length - index < Count)
111 {
113 }
114 }
115
116 public bool Contains(object key)
117 {
118 return false;
119 }
120
121 public void Add(object key, object value)
122 {
123 if (key == null)
124 {
125 throw new ArgumentNullException("key", SR.ArgumentNull_Key);
126 }
127 if (!key.GetType().IsSerializable)
128 {
130 }
131 if (value != null && !value.GetType().IsSerializable)
132 {
134 }
136 }
137
138 public void Clear()
139 {
141 }
142
144 {
145 return new NodeEnumerator();
146 }
147
148 public void Remove(object key)
149 {
151 }
152}
static string Argument_NotSerializable
Definition SR.cs:818
static string ArgumentOutOfRange_Index
Definition SR.cs:30
static string Arg_RankMultiDimNotSupported
Definition SR.cs:18
static string ArgumentNull_Key
Definition SR.cs:28
static string InvalidOperation_EnumOpCantHappen
Definition SR.cs:48
static string InvalidOperation_ReadOnly
Definition SR.cs:1504
static string ArgumentOutOfRange_NeedNonNegNum
Definition SR.cs:32
Definition SR.cs:7