开发者

I want to get list from .resx file

I have my .resx file in another solu开发者_开发问答tion folder and i want to get list or array of items from it ..


You're looking for the ResourceManager class.
If you want more details, please tell us what youre trying to do.


You will have to provide public accessible methods to you resx files, the automatically created accessors (Properties.Resource.Value) are scoped to internal.

So to access resources from another project you will have to create a class in the project where the resource is located and give it a public property that maps to your resource value.

Edit:

So you never stop leaning ... the above is correct but not the best way ... see this post to make all strings/values in a resouce file publicly accessible.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜