In Perl, I can say
use warnings;
warn "Non-fatal error condition, printed to stderr.";
What is equivalent to this in C # ASP.NET? In particular, what I'm looking for is something that other members of my team may know when they are still using the outdated procedure. It should appear at runtime, when the code path actually hits, and not at compile time (otherwise they will receive warnings about code sitting at the compatibility level, which should never be run anyway.)
My best option so far is to use Trace, which seems like a bad hack.
source
share