开发者

Making code "CAS-safe" and "environment safe"

开发者 https://www.devze.com 2022-12-21 19:00 出处:网络
I read an article about making code reliable i开发者_StackOverflow社区n different environments (what with CAS having an influence), and one technique was to use .GetExecutingAssembly(...) for accessin

I read an article about making code reliable i开发者_StackOverflow社区n different environments (what with CAS having an influence), and one technique was to use .GetExecutingAssembly(...) for accessing resources in an assembly (Eg text files). Is there any other useful technique?

I ask as some stuff I am writing will be demo'd from another machine.

Thanks


I think these two MSDN articles should provide you the information you need about accessing resources in an assembly:

Resources in Applications

Packaging and Deploying Resources

0

精彩评论

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

关注公众号