How to access resource file in C#?

后端 未结 2 1381
谎友^
谎友^ 2020-12-15 16:07

i have add .zip file to my resource how can i access that zip file ?

2条回答
  •  一生所求
    2020-12-15 16:37

    Add your resource to the project in the project properties...(which you did)

    Then it's simple...

    var zipFile = MyNamespace.Properties.Resources.My_Zip_File;
    

提交回复
热议问题