By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,460 Members | 1,508 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,460 IT Pros & Developers. It's quick & easy.

C/C++ style macros missing in C#?

P: n/a
Has C# got similar functionality to the __FILE__, __LINE__ and
__FUNCTION__ macros in C and C++ ?
Jun 27 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Annonymous Coward wrote:
Has C# got similar functionality to the __FILE__, __LINE__ and
__FUNCTION__ macros in C and C++ ?
No.

You can get the information runtime if build with debug and
willing to pay the overhead associated with it.

See:

http://msdn.microsoft.com/en-us/libr...e_members.aspx

Arne
Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.