What is the purpose of the enclosing static class for extension members? #9694
-
|
Is there a reason for this enclosing class when designing extension members? What does it express? ... When this code seems to express what the code is intended for... I don't see a need for an enclosing class. The extension members are fully described and only have meaning in relation to the Account type. The AccountExtensions type and the requirement to type that out, as well as the nesting is meaningless. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 12 replies
-
|
It gives you access to the underlying static members, should you need to call them explicitly (for example for disambiguation purposes). |
Beta Was this translation helpful? Give feedback.
It gives you access to the underlying static members, should you need to call them explicitly (for example for disambiguation purposes).