コード例 #1
0
        public IEnumerable <LocalizedString> GetAllStrings(bool includeParentCultures)
        {
            var resources = DbRes.GetResourceSet(ResourceSet);

            if (resources != null)
            {
                foreach (DictionaryEntry resource in resources)
                {
                    var key   = resource.Key as string;
                    var value = resource.Value as string;

                    var localizedString = new LocalizedString(key, value);
                    yield return(localizedString);
                }
            }
        }