Read Value from Resource file using String

前端 未结 2 1129
长发绾君心
长发绾君心 2021-01-12 20:05

I have an enum with some data on it, also I have a resource file with the same data of the enum but using different translation

Ex.

         


        
2条回答
  •  伪装坚强ぢ
    2021-01-12 20:46

    The resource is probably be a part of your assembly. Why don't you use the following? Resources.ResourceManager.GetString(test.Sun.ToString())

提交回复
热议问题