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

◆ InternalGetResourceSet()

virtual ? ResourceSet System.Resources.ResourceManager.InternalGetResourceSet ( CultureInfo culture,
bool createIfNotExists,
bool tryParents )
inlineprotectedvirtual

Definition at line 344 of file ResourceManager.cs.

345 {
347 ResourceSet value = null;
350 {
352 {
353 return value;
354 }
355 }
356 ResourceFallbackManager resourceFallbackManager = new ResourceFallbackManager(culture, _neutralResourcesCulture, tryParents);
358 {
360 {
362 {
363 if (culture != item)
364 {
366 }
367 break;
368 }
369 }
371 if (value != null)
372 {
374 break;
375 }
376 }
377 if (value != null && cultureInfo != null)
378 {
380 {
382 if (item2 == cultureInfo)
383 {
384 break;
385 }
386 }
387 }
388 return value;
389 }
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
static void AddResourceSet(Dictionary< string, ResourceSet > localResourceSets, string cultureName, ref ResourceSet rs)
Dictionary< string, ResourceSet > _resourceSets
ResourceSet GrovelForResourceSet(CultureInfo culture, Dictionary< string, ResourceSet > localResourceSets, bool tryParents, bool createIfNotExists)

References System.Resources.ResourceManager._neutralResourcesCulture, System.Resources.ResourceManager._resourceGroveler, System.Resources.ResourceManager._resourceSets, System.Resources.ResourceManager.AddResourceSet(), System.culture, System.Resources.IResourceGroveler.GrovelForResourceSet(), System.item, System.Collections.Generic.Dictionary< TKey, TValue >.TryGetValue(), and System.value.

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