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

◆ GetFirstResourceSet()

ResourceSet System.Resources.ResourceManager.GetFirstResourceSet ( CultureInfo culture)
inlinepackage

Definition at line 273 of file ResourceManager.cs.

274 {
276 {
278 }
279 if (_lastUsedResourceCache != null)
280 {
282 {
284 {
286 }
287 }
288 }
290 ResourceSet value = null;
291 if (resourceSets != null)
292 {
294 {
296 }
297 }
298 if (value != null)
299 {
300 if (_lastUsedResourceCache != null)
301 {
303 {
304 _lastUsedResourceCache.lastCultureName = culture.Name;
305 _lastUsedResourceCache.lastResourceSet = value;
306 }
307 }
308 return value;
309 }
310 return null;
311 }
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
static CultureInfo InvariantCulture
CultureNameResourceSetPair _lastUsedResourceCache
Dictionary< string, ResourceSet > _resourceSets

References System.Resources.ResourceManager._lastUsedResourceCache, System.Resources.ResourceManager._neutralResourcesCulture, System.Resources.ResourceManager._resourceSets, System.culture, System.Globalization.CultureInfo.InvariantCulture, System.Resources.ResourceManager.CultureNameResourceSetPair.lastCultureName, System.Resources.ResourceManager.CultureNameResourceSetPair.lastResourceSet, System.Globalization.CultureInfo.Name, System.Collections.Generic.Dictionary< TKey, TValue >.TryGetValue(), and System.value.

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