Read embedded file from assembly

前端 未结 1 1823
迷失自我
迷失自我 2020-12-21 20:10

I have to pass the path of a config file to a framework method (Gurok SmartInspect). The config file is an embedded resource of the assembly. Currently I read the file from

相关标签:
1条回答
  • 2020-12-21 20:27

    If the only way that Gurok SmartInspect reads configuration information is from a file that you pass it a path to and you've decided to embed that file in your assembly, then yes, your method is fine. You might want to consider adding some exception handling but otherwise I see no problem with this.

    0 讨论(0)
提交回复
热议问题