且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

为什么ResourceManager.GetResourceSet在构建后的第一个请求返回null? (C#)

更新时间:2023-02-19 10:39:10

GetResourceSet必须是真实的方法的第二参数createIfNotExist,告诉的ResourceManager加载的ResourceSet如果尚未加载。

Second param "createIfNotExist" of the method GetResourceSet has to be true, that tells ResourceManager to load the ResourceSet if not yet loaded.

ResourceSet rs = _resources.GetResourceSet(culture, true, false);