I\'m using the Obsolete attribute (as just suggested by fellow programmers) to show a warning if a certain method is used.
Obsolete
Is there a way to suppress the
The intent is to disable the warning for obsolete usage, regardless of whether the construct is marked with [Obsolete] or [Obsolete("Message")]. So use both CS0612 and CS0618:
[Obsolete]
[Obsolete("Message")]
#pragma warning disable 612, 618 ... #pragma warning restore 612, 618