Get executing assembly name using reflection

前端 未结 5 1055
清酒与你
清酒与你 2020-12-19 09:00

I am trying to pull the project name using the reflection, but during the substring method it give me \"index out of bound error\".

string s = System.Reflec         


        
5条回答
  •  -上瘾入骨i
    2020-12-19 09:29

    Use the Path class instead of trying to reinvent the wheel and calculating the substring indexes manually.

提交回复
热议问题