public virtual string GetString(string name, CultureInfo culture)
{
if (null == name)
{
throw new ArgumentNullException(nameof(name));
}
if (WinRTInterop.Callbacks.IsAppxModel() && _resourceMap == null)
{
if (name.Equals("MissingManifestResource_ResWFileNotLoaded") &&
_resourcesSubtree.Equals("FxResources.System.Resources.ResourceManager.SR", StringComparison.OrdinalIgnoreCase))
{
// If we get here, means we are missing the resources even for the message MissingManifestResource_ResWFileNotLoaded
// it is important to throw the exception using the hardcoded message to prevent the stack overflow from occurring.
throw new MissingManifestResourceException("Unable to load resources for resource file " + _resourcesSubtree + ".");
}
throw new MissingManifestResourceException(SR.Format(SR.MissingManifestResource_ResWFileNotLoaded, _resourcesSubtree));
}
return GetResourceString(name, culture == null ? null : culture.Name);
}