Using ResourceManager

前端 未结 6 1227
走了就别回头了
走了就别回头了 2020-12-08 07:38

I\'m trying to use the ResourceManager in a C# class, but don\'t know what to substitute for the basename when creating a new instance of the ResourceManager class.

6条回答
  •  醉话见心
    2020-12-08 07:42

    I went through a similar issue. If you consider your "YeagerTechResources.Resources", it means that your Resources.resx is at the root folder of your project.

    Be careful to include the full path eg : "project\subfolder(s)\file[.resx]" to the ResourceManager constructor.

提交回复
热议问题