Is it possible to trigger compiler warnings?
===

I have a function which should only be used by a developer in special circumstances. 

Unfortunately setting public / private doesn't really help, as it needs to be visible for use in many cases.

I have documented the function with xmldocs to give the developer a warning, but is it possible to output a compiler warning? Perhaps using an attribute, similar to marking a function as obsolete?

Or perhaps if someone has any useful architectural advice on steering people away from dangerous methods (i'm guessing this will probably be separate namespaces, inheritance etc?)


