c# Public Nested Classes or Better Option?

后端 未结 8 663
青春惊慌失措
青春惊慌失措 2020-12-03 05:49

I have a control circuit which has multiple settings and may have any number of sensors attached to it (each with it\'s own set of settings). These sensors may only be used

8条回答
  •  醉酒成梦
    2020-12-03 06:23

    I would say the better option is moving those nested classes out of the class they're in and have them stand on their own. Unless I'm missing something you appear only to have them in the main class in order for some sort of scoping concept, but really, that's what namespaces are for.

提交回复
热议问题