Self Generated Warnings?

  • Thread starter Thread starter theinvisibleGhost
  • Start date Start date
T

theinvisibleGhost

Is it possible in someway to write code,
that will flag up a warning at compile time as a kind of reminder?

I was thinking something along the lines of
Compiler.Warnings.Add("This Method is Incomplete");

Or alternatively in VS 2005?

Cheers
Chris
 
Thanks Tom :-)

theinvisibleGhostwrote:



Use the #warning directive. Ex:

#warning This Method is Incomplete

Seehttp://msdn2.microsoft.com/en-us/library/963th5x3(vs.80).aspx
 

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

Back
Top