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

◆ GetString() [2/2]

virtual ? string System.Resources.ResourceManager.GetString ( string name,
CultureInfo? culture )
inlinevirtual

Definition at line 464 of file ResourceManager.cs.

465 {
466 if (name == null)
467 {
468 throw new ArgumentNullException("name");
469 }
470 if (culture == null)
471 {
473 }
475 if (resourceSet != null)
476 {
477 string @string = resourceSet.GetString(name, _ignoreCase);
478 if (@string != null)
479 {
480 return @string;
481 }
482 }
483 ResourceFallbackManager resourceFallbackManager = new ResourceFallbackManager(culture, _neutralResourcesCulture, useParents: true);
485 {
487 if (resourceSet2 == null)
488 {
489 break;
490 }
492 {
493 continue;
494 }
495 string string2 = resourceSet2.GetString(name, _ignoreCase);
496 if (string2 != null)
497 {
498 if (_lastUsedResourceCache != null)
499 {
501 {
502 _lastUsedResourceCache.lastCultureName = item.Name;
503 _lastUsedResourceCache.lastResourceSet = resourceSet2;
504 }
505 }
506 return string2;
507 }
509 }
510 return null;
511 }
static CultureInfo CurrentUICulture
virtual ? ResourceSet InternalGetResourceSet(CultureInfo culture, bool createIfNotExists, bool tryParents)
CultureNameResourceSetPair _lastUsedResourceCache
ResourceSet GetFirstResourceSet(CultureInfo culture)

References System.Resources.ResourceManager._ignoreCase, System.Resources.ResourceManager._lastUsedResourceCache, System.Resources.ResourceManager._neutralResourcesCulture, System.culture, System.Globalization.CultureInfo.CurrentUICulture, System.Resources.ResourceManager.GetFirstResourceSet(), System.Resources.ResourceManager.InternalGetResourceSet(), and System.item.