How to find path to .cs file by its type in C#

后端 未结 4 844
耶瑟儿~
耶瑟儿~ 2020-12-03 15:39

How to find path to .cs file by its type?

Prototype of function:

string FindPath(Type);

Returns something like \"C:\\Projects\\.....\\M

4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-03 16:13

    That's not possible, there is no such relation. A class can be partial, so it can even come from several different source files.

提交回复
热议问题