public bool TryResolve(EmbeddedResourcePathInfo pathInfo, out AssemblyNameResolution result) { try { result = Resolve(pathInfo); } catch { result = null; return(false); } return(true); }
bool TryGetByName(string resourceName, out AssemblyNameResolution result) { result = null; var matchingNames = Resources.Where(x => x.Name.EndsWith("." + resourceName, StringComparison.InvariantCultureIgnoreCase)).ToList(); if (matchingNames.Count() == 1) { result = matchingNames.First(); return(true); } return(false); }
public bool TryResolve(EmbeddedResourcePathInfo pathInfo, out AssemblyNameResolution result) { try { result = Resolve(pathInfo); } catch { result = null; return false; } return true; }
bool TryGetByName(string resourceName, out AssemblyNameResolution result) { result = null; var matchingNames = Resources.Where(x => x.Name.EndsWith("." + resourceName, StringComparison.InvariantCultureIgnoreCase)).ToList(); if (matchingNames.Count() == 1) { result = matchingNames.First(); return true; } return false; }