Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Method Compartmentalization
Message
From
18/01/2006 07:50:30
 
 
To
17/01/2006 20:28:24
General information
Forum:
ASP.NET
Category:
Class design
Miscellaneous
Thread ID:
01087607
Message ID:
01087903
Views:
8
Hi Perry,

Right and I do that also. What I was looking for was a way to provide for a developer using the class to have easy access with intellisense by grouping the functions so a logical "path" could be followed to the particular method.

Bill

>If the methods are all in the same class you can just use the dropdown in the upper right corner of the code view window to navigate to the appropriate method.
>
>>Hi Bonnie,
>>
>>Yeah, already applied regions, thanks. :-) Was looking for something to make it easier for someone using the class to locate a specific method by traversing a "path". I could theoretically have broken it up into multiple classes but wanted to keep all of the methods in the one class since they are all related at one level or another.
>>
>>Bill
>>
>>>Bill,
>>>
>>>Not with namespaces, but if you group your code into regions (by the use of #region MyRegion/#endregion) you can at least group things visually. Is this good enough for your purposes?
>>>
>>>~~Bonnie
>>>
>>>
>>>>In C#, if you have a class that has a large number of methods in it, is it possible to compartmentalize the methods within the class into groups similar to the way we would use namespaces to group files, classes, etc. so that a path is followed to the method?
>>>>
>>>>Thanks,
>>>>Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Reply
Map
View

Click here to load this message in the networking platform