Getting a string dynamically from strings resources

ResourceManager rm = new ResourceManager("RootResourceName",
                                         typeof(SomeClass).Assembly);
string someString = rm.GetString("someString");

发表回复

您的电子邮箱地址不会被公开。