public object GetResource(string name, bool ignoreCase, bool isString, bool asSafe, bool cloneValue) { ResXResourceSet resx = resxResourceSet; ResourceSet compiled = compiledResourceSet; if (resx == null || compiled == null) { Throw.ObjectDisposedException(); } object result = resx.GetResourceInternal(name, ignoreCase, isString, asSafe, cloneValue); if (result != null) { return(result); } // if the null result is because it is explicitly stored, hiding the compiled value if (resx.ContainsResource(name, ignoreCase)) { return(null); } return(isString ? compiled.GetString(name, ignoreCase) : compiled.GetObject(name, ignoreCase)); }