• Advertisement

Archived

This topic is now archived and is closed to further replies.

CSharp equivalent of C++ __LINE___

This topic is 5021 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Is there a macro like in VC++ where __LINE__ will be replaced with the current line number in the source file?

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
What are you trying to do? If it''s something that you want to know if a certain error condition happened at a certain place in the code, you should look at the System.Diagnostics namespace, especially Debug.Assert

Share this post


Link to post
Share on other sites

  • Advertisement