遍历文件中的资源

    

                // Opens a resource reader and gets an enumerator from it.
                IResourceReader reader = new ResourceReader("myResources.resources");
                IDictionaryEnumerator en = reader.GetEnumerator();

                // Goes through the enumerator, printing out the key and value pairs.
                while (en.MoveNext())
                {
                    Console.WriteLine();
                    Console.WriteLine("Name: {0}", en.Key);
                    Console.WriteLine("Value: {0}", en.Value);
                }
                reader.Close();

原文地址:https://www.cnblogs.com/chenfulai/p/1115131.html