Getting a string dynamically from strings resources

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

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注