المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Full path name of .cs file



C# Programming
11-21-2012, 02:00 AM
Is there a way to return the full path name of the file containing the code?
suppose I have the following class in c:\myproject\CA.cs
public static class A{public static void Show(){string myFile = .... // here should read where the code is i.e c:\myproject\CA.csConsole.WriteLine(myFile);}}