__DATE__ and __FILE__ equivalents.

J

Jeffrey Bradshaw

Are there compile date/time and file line equivalents for __DATE__ and
__FILE__ in C#?
 
N

Nicholas Paldino [.NET/C# MVP]

Jeffrey,

These things do not exist in C#. You will have to embed that
information in your code somehow. When you compile your assemblies in debug
mode, the file information is included by default. As for the compilation
date, you are going to have to embed that yourself (through the use of an
attribute, perhaps).

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top