Custom Attribute to cause Compile Errors/Warnings

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi I'd like to create an attribute similar to ObsoleteAttribute, that would
cause a compile warning or error. Can anyone help me out on this?
thanks
 
Incubot said:
Hi I'd like to create an attribute similar to ObsoleteAttribute, that
would cause a compile warning or error. Can anyone help me out on
this?

To do that you would have to rewrite the compiler. The SSCLI (Rotor) has
source code for the C# compiler and is one place you can start.

Richard
 
Back
Top