阅读背景:

如何在与Knowntype属性一起使用的类上使用Obsolete属性时忽略编译器警告

来源:互联网 

So we are trying to deprecate some of our existing classes, and have started marking them as obsolete with the ObsoleteAttribute so they will stop being used. The fact that using the KnownType attribute with a type that is marked with the Obsolete attribute and is causing a compiler warning is expected. However, in our project we have warnings treated as errors so ignoring the warning isn't an option. Is there a compiler directive to suppress this warning? So we are trying to deprecate some of our exist




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: