与此问题相关:How to specify Ensures for out parameter?
如何为Ensures.Requires()-method执行此操作?
发布于 2017-08-02 17:05:21
在我的例子中,我错误地使用了out-keyword。正如Matthew Watson所说,我必须使用ref-parameter。
所以我对Contract.Requires()没有更多的问题了。
https://stackoverflow.com/questions/45455893
复制相似问题