积极答复者
C#动态添加资源文件和读取资源文件

问题
答案
-
你好 pucx,
欢迎来到MSND中文论坛。
对于您所提到的问题,我个人认为一下的几个方法可是实现,仅供你参考:
ResourceManager.GetStream 方法 (String, CultureInfo) (System.Resources)
ResourceWriter.AddResource 方法 (String, Stream) (System.Resources)
ResourceManager.GetStream 方法 (String) (System.Resources)
ResourceWriter.AddResource 方法 (String, Stream, Boolean) (System.Resources)
希望能帮助您。
Best Regards,
Rocky Yue[MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已标记为答案 Lie YouModerator 2011年11月1日 8:33
全部回复
-
How to use System.Resources.ResourceWriter to add audio files,video files, application files to resources and save it? At the same time, how to use System.Resources.ResourceManager to read the audio files,video files, application files out and use? Thank you.
- 已合并 Lie YouModerator 2011年11月1日 8:36 duplicate one.
-
you can read "Adding resources to an assembly" to know how to do that.
Any fool can know. The point is to understand.(Albert Einstein) -
你好 pucx,
欢迎来到MSND中文论坛。
对于您所提到的问题,我个人认为一下的几个方法可是实现,仅供你参考:
ResourceManager.GetStream 方法 (String, CultureInfo) (System.Resources)
ResourceWriter.AddResource 方法 (String, Stream) (System.Resources)
ResourceManager.GetStream 方法 (String) (System.Resources)
ResourceWriter.AddResource 方法 (String, Stream, Boolean) (System.Resources)
希望能帮助您。
Best Regards,
Rocky Yue[MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已标记为答案 Lie YouModerator 2011年11月1日 8:33
-
There is a duplicate case at Chinsese MSDN forum. Here is the link:
There should be some helpful materials for your reference.
Thanks for your understanding and support.
Best Regards,
Rocky Yue[MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.