Why doesn't Code Analysis warn about a NotImplementedException?

I am sure that previous versions of Visual Studio Code Analysis warned about using NotImplementedException, i.e. any member that contained this

throw new NotImplementedException();

give warning CA.

This is not like Visual Studio 2008.

Was this particular rule ruled out, or am I just imagining that it ever existed?

+5
source share
4 answers

You are probably thinking of this FxCop warning that you get when throwing NotImplementedExceptionfrom special methods such as getter, event accessor, Equals, GetHashCode, Dispose, etc .:

CA1065: Microsoft.Design: 'SomeClass.SomeProperty.get()' "NotImplementedException", , . , , , .

NotImplementedException. FxCop , () .

+4

, - , Microsoft. , , , FxCop 1.35, , FxCop 1.32, - ...

+1

, , (12 2017 .) Code Analysis, Visual Studio 2017. "CA1065", Wim Coenen, , Microsoft FxCop Roslyn.

,

+1

Unfortunately, there is no such rule in the standard set of rules.

You can find my implementation in one of my other answers .

0
source

All Articles