"Magic" constants in C# like PHP has?
<p>I am building a logging control for a C# project and would like to be able to call it with the name of the current source code File, Line, Class, Function, etc. PHP uses "magic constants" that have all of this info: <a href="http://php.net/manual/en/language.constants.predefined.php" rel="nofollow">http://php.net/manual/en/language.constants.predefined.php</a> but I don't see anything like that in the C# compiler language. </p>

<p>Am I looking for something that doesn't exist? </p>
