[英]Are code contracts supported in .net core?
In the .net framework there were Code Contracts which allowed me to specify pre/post conditons in my code.在 .net 框架中有代码契约,它允许我在我的代码中指定前/后条件。 Are they supported in .net core/.net 5?
.net core/.net 5 是否支持它们?
Namespace System.Diagnostics.Contracts
is available but project is abandoned .命名空间
System.Diagnostics.Contracts
可用,但项目已放弃。
Alternative VS2019替代 VS2019
https://softwarerecs.stackexchange.com/questions/47108/the-best-code-contracts-alternative-for-vs-2017-2019-and-net-core-projects https://softwarerecs.stackexchange.com/questions/47108/the-best-code-contracts-alternative-for-vs-2017-2019-and-net-core-projects
Discussion about .Net Core关于 .Net Core 的讨论
https://github.com/dotnet/runtime/issues/23869 https://github.com/dotnet/runtime/issues/23869
Is Code Contracts still the recommended way to go in 2020代码契约仍然是 2020 年的推荐方式吗
https://github.com/dotnet/docs/issues/17640 https://github.com/dotnet/docs/issues/17640
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.