All classes are assembled in assemblies (.exe or .dll). I do not think that you can get the path to the source file of the class, because this class may not even exist (if you copied the .exe file to another computer).
But you can get the path to the current build file (.exe) that is running. Check this answer: Get C # build path
string file = (new System.Uri(Assembly.GetExecutingAssembly().CodeBase)).AbsolutePath;
source
share