System.Resources.ResourceWriter rw = new ResourceWriter(@"..\..\abc.resources");这句话应该要用吧,其他的不知道,同问。
楼主还在否?可以加QQ吗?我QQ:254867296,QQ交流会方便些。
public static void Main() { // Create a ResourceReader for the file items.resources. ResourceReader rr = new ResourceReader("items.resources"); // Create an IDictionaryEnumerator to iterate through the resources. IDictionaryEnumerator id = rr.GetEnumerator(); // Iterate through the resources and display the contents to the console. while(id.MoveNext()) Console.WriteLine("\n[{0}] \t{1}", id.Key, id.Value); rr.Close();
{
// Create a ResourceReader for the file items.resources.
ResourceReader rr = new ResourceReader("items.resources");
// Create an IDictionaryEnumerator to iterate through the resources.
IDictionaryEnumerator id = rr.GetEnumerator(); // Iterate through the resources and display the contents to the console.
while(id.MoveNext())
Console.WriteLine("\n[{0}] \t{1}", id.Key, id.Value); rr.Close();
}