title: Do __LINE__ __FILE__ equivalents exist in C#?
body: <p>For logging purposes </p>
  
  <pre><code>__LINE__ 
  __FILE__ 
  </code></pre>
  
  <p>were my friends in C/C++.  In Java to get that information I had to throw an exception and catch it.  Why are these old standbys so neglected in the modern programming languages?  There is something magical about their simplicity.</p>