CA1034: Nested types should not be visible
- by George
Here's an explanation of the rule that that I am trying to understand. Here's the simplified code that the Code Analyzer was complaining about:
Public Class CustomerSpeed
Public Enum ProfitTypeEnum As Integer
NotSpecified = 0
FlatAmount = 1
PercentOfProfit = 2
End Enum
Private _ProfitTypeEnum As ProfitTypeEnum…