惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
SegmentFault 最新的问题
G
Google Developers Blog
H
Help Net Security
月光博客
月光博客
阮一峰的网络日志
阮一峰的网络日志
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
P
Proofpoint News Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
B
Blog RSS Feed
爱范儿
爱范儿
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 三生石上(FineUI控件)
大猫的无限游戏
大猫的无限游戏
人人都是产品经理
人人都是产品经理
GbyAI
GbyAI
D
Docker
Hugging Face - Blog
Hugging Face - Blog
I
InfoQ
博客园 - 司徒正美
Last Week in AI
Last Week in AI
Microsoft Security Blog
Microsoft Security Blog
美团技术团队
Stack Overflow Blog
Stack Overflow Blog
M
MIT News - Artificial intelligence

博客园 - 北溟鱼逍遥游

datepart in ssis Mac再建管理员帐户 [error] option strict on disallow late binding [SSIS 2005]SSIS Error The AcquireConnection method call to the connection manager failed with error code 0xC0202009 [SSIS 2005]the script task can not run this edition of integration service 团队的脊梁 msn group 转 大师 Proj summary Thinking snippets SQL server 2005 Enterprise Edition can't support AMD sepron 2500+ Can't found the specified domain: Web access LDAP Server - 北溟鱼逍遥游 Singleton C++/STL 笔记 经典:自己收藏 Understand office model Close window without alert DataGrid Item auto-generate serial number 给软件开发经理的建议
求:C# 中nowarn 的 attribute
北溟鱼逍遥游 · 2007-02-08 · via 博客园 - 北溟鱼逍遥游

将一个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中显式申明
    编译不警告或者屏蔽这个编译警告
因为这个问题 "我知道自己在干什么, 并且要求这么干"
谢谢