求:C# 中nowarn 的 attribute

将一个class 添加了
    [Obsolete( "this class is overtime, pls use another one." )]
编译器会warning:
    "xx.cs warning CS0618: “xx class 已过时"。
通过通过编译设置
    "csc xx.cs /nowarn 0618"
可以屏蔽这个警告。
通过设定
    ObsoleteAttribute的IsError为false
也可以屏蔽
但是这个都是部件(dll)的publisher控制的

想请教各位达人:
是否有attribute, 可以在client端class中显式申明
    编译不警告或者屏蔽这个编译警告
因为这个问题 "我知道自己在干什么, 并且要求这么干"
谢谢

原文地址:https://www.cnblogs.com/archmaster/p/644500.html