Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetCaseInsensitiveObjectInternal()

object System.Resources.ResourceSet.GetCaseInsensitiveObjectInternal ( string name)
inlineprivateinherited

Definition at line 178 of file ResourceSet.cs.

179 {
181 if (table == null)
182 {
183 throw new ObjectDisposedException(null, SR.ObjectDisposed_ResourceSet);
184 }
186 if (dictionary == null)
187 {
188 dictionary = new Dictionary<string, object>(table.Count, StringComparer.OrdinalIgnoreCase);
189 foreach (KeyValuePair<object, object> item in table)
190 {
191 if (item.Key is string key)
192 {
193 dictionary.Add(key, item.Value);
194 }
195 }
197 }
199 return value;
200 }
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
Dictionary< string, object > _caseInsensitiveTable
Dictionary< object, object > _table

References System.Resources.ResourceSet._caseInsensitiveTable, System.Resources.ResourceSet._table, System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.dictionary, System.item, System.key, System.SR.ObjectDisposed_ResourceSet, System.StringComparer.OrdinalIgnoreCase, System.Collections.Generic.Dictionary< TKey, TValue >.TryGetValue(), and System.value.

Referenced by System.Resources.ResourceSet.GetObject(), and System.Resources.ResourceSet.GetString().