Click here to Skip to main content
15,898,371 members
Home / Discussions / C#
   

C#

 
AnswerRe: Free SMS API Pin
Richard MacCutchan28-Jan-11 1:36
mveRichard MacCutchan28-Jan-11 1:36 
QuestionClearing IE browsing history Pin
rakeshs31227-Jan-11 20:04
rakeshs31227-Jan-11 20:04 
AnswerRe: Clearing IE browsing history Pin
Not Active27-Jan-11 20:17
mentorNot Active27-Jan-11 20:17 
AnswerReason for my vote of one: Pin
OriginalGriff27-Jan-11 20:24
mveOriginalGriff27-Jan-11 20:24 
QuestionWorking with native dll (dynamic string array and double indirection) Pin
csrss27-Jan-11 13:15
csrss27-Jan-11 13:15 
AnswerRe: Working with native dll (dynamic string array and double indirection) Pin
csrss27-Jan-11 14:39
csrss27-Jan-11 14:39 
QuestionBreaking Up Classes PinPopular
Richard Andrew x6427-Jan-11 11:40
professionalRichard Andrew x6427-Jan-11 11:40 
AnswerRe: Breaking Up Classes Pin
TheGreatAndPowerfulOz27-Jan-11 11:49
TheGreatAndPowerfulOz27-Jan-11 11:49 
GeneralRe: Breaking Up Classes Pin
Richard Andrew x6427-Jan-11 11:53
professionalRichard Andrew x6427-Jan-11 11:53 
GeneralRe: Breaking Up Classes Pin
TheGreatAndPowerfulOz27-Jan-11 12:36
TheGreatAndPowerfulOz27-Jan-11 12:36 
AnswerRe: Breaking Up Classes Pin
RobCroll27-Jan-11 11:55
RobCroll27-Jan-11 11:55 
AnswerRe: Breaking Up Classes Pin
dan!sh 27-Jan-11 12:03
professional dan!sh 27-Jan-11 12:03 
GeneralRe: Breaking Up Classes Pin
TheGreatAndPowerfulOz27-Jan-11 12:37
TheGreatAndPowerfulOz27-Jan-11 12:37 
AnswerRe: Breaking Up Classes Pin
GlobX27-Jan-11 12:10
GlobX27-Jan-11 12:10 
GeneralRe: Breaking Up Classes Pin
TheGreatAndPowerfulOz27-Jan-11 12:39
TheGreatAndPowerfulOz27-Jan-11 12:39 
QuestionRe: Breaking Up Classes [modified] Pin
GlobX27-Jan-11 12:46
GlobX27-Jan-11 12:46 
GeneralRe: Breaking Up Classes Pin
Manfred Rudolf Bihy27-Jan-11 12:54
professionalManfred Rudolf Bihy27-Jan-11 12:54 
QuestionRe: Breaking Up Classes Pin
GlobX27-Jan-11 12:58
GlobX27-Jan-11 12:58 
AnswerRe: Breaking Up Classes Pin
Manfred Rudolf Bihy27-Jan-11 13:41
professionalManfred Rudolf Bihy27-Jan-11 13:41 
GeneralRe: Breaking Up Classes Pin
GlobX27-Jan-11 13:50
GlobX27-Jan-11 13:50 
GeneralRe: Breaking Up Classes Pin
Manfred Rudolf Bihy27-Jan-11 13:56
professionalManfred Rudolf Bihy27-Jan-11 13:56 
AnswerRe: Breaking Up Classes Pin
TheGreatAndPowerfulOz27-Jan-11 13:43
TheGreatAndPowerfulOz27-Jan-11 13:43 
GeneralRe: Breaking Up Classes Pin
GlobX27-Jan-11 14:03
GlobX27-Jan-11 14:03 
GeneralRe: Breaking Up Classes Pin
PIEBALDconsult27-Jan-11 14:13
mvePIEBALDconsult27-Jan-11 14:13 
AnswerRe: Breaking Up Classes PinPopular
Luc Pattyn27-Jan-11 13:07
sitebuilderLuc Pattyn27-Jan-11 13:07 
Class size doesn't really matter, well it sure isn't a primary concern. Object orientation should guide you. I'll assume it isn't a huge static class holding everything (as a VB module would).

My advice would be you ask yourself a number of questions:

1.
check the class name. Does it cover well everything inside the class? And would it be easy to come up with one or two new names that cover the content any better?

2.
check your "executive summary" comment, which is supposed to describe at a high level what your class is offering. Does it exceed 5 lines of text (excluding the petty details that aren't executive at all)? Does the text suggest a split somehow?

3.
look for inheritance. Are some parts of your class only relevant to some of its instances? If so, use inheritance.

4.
look for properties and methods that may be relevant to other objects, i.e. that would have (potential) value when applicable to other objects. If so, consider aggregation. See e.g. the decorator pattern.

5.
test yourself: without looking at the code, try and name all public properties and methods by heart. If you can't name half of them right away, you might be better of with a smaller class, if that were possible.

After looking at it from those different angles, I think you should know what to do (and if you don't, it tells you it doesn't really matter).

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.