private IEnumerable <string> GetOrdinals() { var loader = new ResourceLoaderAdapter(new ResourceLoader()); yield return(loader.GetString("First")); yield return(loader.GetString("Second")); yield return(loader.GetString("Third")); yield return(loader.GetString("Fourth")); yield return(loader.GetString("Last")); }
static ErrorMessagesHelper() { ResourceLoader = new ResourceLoaderAdapter(new ResourceLoader()); }
static ResourceStringsHelper() { ResourceLoader = new ResourceLoaderAdapter(new ResourceLoader()); }
static ErrorMessagesHelper() { // TODO: 'ResourceLoader.ResourceLoader(string)' is obsolete: 'ResourceLoader may be altered or unavailable for releases after Windows 8.1. Instead, use GetForCurrentView. ResourceLoader = new ResourceLoaderAdapter(new ResourceLoader("AdventureWorks.UILogic/Resources")); }