Code contracts. How suppress warnings on generated code?

只谈情不闲聊 提交于 2019-12-04 14:16:32

You can suppress checks on static code by marking the class(es) in question with [ContractVerification(false)].

If your generated classes are partial you can create another file with another part(ial) in it and add it there, so it doesn't get overwritten when the code is regenerated.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!