我目前有一個名爲「Customers」的VB.NET類,它的尺寸一直在穩步增長,我現在有幾個函數。有沒有一種方法可以維護同一班級的功能?由於它們仍然使用常用的私有方法,但是將它們按照相似性分組。如何在ASP.NET類中分組函數?
例如:
Class Customers
-GetData
---GetCustomerObject()
---GetCustomerFieldx()
-Lists
---GetSomeList()
---GetAnotherList()
-Maintenance
---AddCustomer()
---DeleteCustomer()
---UpdateCustomer()
更新:我想我是不是在哪裏,我想這組發生明顯的。當我使用我的Customer類時,我希望這些分組幾乎像IntelliSense中的命名空間/類。我目前使用Regions,但它們只在看到代碼時有所幫助,而不是在使用該類時。