471,337 Members | 1,439 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

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

Has C# got similar functionality to the __FILE__, __LINE__ and
__FUNCTION__ macros in C and C++ ?
Jun 27 '08 #1
1 1047
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.

Similar topics

220 posts views Thread by Brandon J. Van Every | last post: by
37 posts views Thread by michele.simionato | last post: by
8 posts views Thread by Michael Winter | last post: by
13 posts views Thread by jing | last post: by
43 posts views Thread by Sensei | last post: by
101 posts views Thread by Elijah Cardon | last post: by
18 posts views Thread by Nick Keighley | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.