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

推荐订阅源

博客园 - 司徒正美
T
The Blog of Author Tim Ferriss
F
Fortinet All Blogs
Martin Fowler
Martin Fowler
罗磊的独立博客
The GitHub Blog
The GitHub Blog
L
LangChain Blog
A
About on SuperTechFans
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
D
DataBreaches.Net
宝玉的分享
宝玉的分享
U
Unit 42
阮一峰的网络日志
阮一峰的网络日志
Last Week in AI
Last Week in AI
N
Netflix TechBlog - Medium
The Cloudflare Blog
Microsoft Azure Blog
Microsoft Azure Blog
H
Help Net Security
美团技术团队
大猫的无限游戏
大猫的无限游戏
雷峰网
雷峰网
爱范儿
爱范儿
酷 壳 – CoolShell
酷 壳 – CoolShell
MongoDB | Blog
MongoDB | Blog

博客园 - 北溟鱼逍遥游

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