I'm using the Obsolete
attribute (as just suggested by fellow programmers) to show a warning if a certain method is used.
Is there a way to suppress the warning similar to CodeAnalysis' SuppressMessage
at points where the use is justified?
This needs to work for [Obsolete("Some message")]
which generates warning 618 and the plain [Obsolete]
attribute with no message which generates warning 612.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…