CA1051 - $ evaluationInvariant $的另一个代码分析违规 [英] CA1051 - Another code analysis violation for $evaluatingInvariant$
本文介绍了CA1051 - $ evaluationInvariant $的另一个代码分析违规的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
警告 6
CA1051:Microsoft.Design:因为字段'CaptionDetail。$ evaluationInvariant $'在其声明类型之外是可见的,所以将其可访问性更改为private并添加一个属性,具有与该字段当前相同的可访问性,以向其提供访问
。 CargoWise.Glow.Infrastructure.Domain
CA1051:Microsoft.Design:因为字段'CaptionDetail。$ evaluationInvariant $'在其声明类型之外是可见的,所以将其可访问性更改为private并添加一个属性,具有与该字段当前相同的可访问性,以向其提供访问
。 CargoWise.Glow.Infrastructure.Domain
Warning 6
CA1051 : Microsoft.Design : Because field 'CaptionDetail.$evaluatingInvariant$' is visible outside of its declaring type, change its accessibility to private and add a property, with the same accessibility as the field has currently, to provide access
to it. CargoWise.Glow.Infrastructure.Domain
推荐答案
我也可以确认这一点。
这篇关于CA1051 - $ evaluationInvariant $的另一个代码分析违规的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文