开发者

What can be stored in a resource.resx file?

In a C# project, is it possible to store more than just strings in the resources.resx file? Specifically, I was curious to know if I could take a simple data-object defined in my project, and store an instance of it in the resource 开发者_开发知识库file to pull out during runtime.

I figure I probably can do this if I serialize my object first, then put the serializer output in the resource file, but I was hoping to be able to have the object strongly-typed when I pull it out.

Any thoughts?


What can be stored in a resource.resx file?

So you could store your object as a binary or XML file and deserialize it back but a resource file seems uncommon place to store such things.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜