Attribute to mark code
- by happyclicker
In c# there are attributes such as [obsolete] that create compiler warnings that will be shown in visual studio.
Is there an attribute that I can use to mark a method or a class with a comment that should be shown as a warning in visual studio when I compile?
Something like:
[TBD(Msg="Please change me after 2010 07 20")]
public void Foo(){
}
or is there a possibility that I can derive from System.Attribute and make my own attribute, configuring visual studio so that it behaves as I described.