Click here to Skip to main content
15,900,108 members
Home / Discussions / C#
   

C#

 
AnswerRe: Windows Service problem Pin
leppie30-Nov-05 19:29
leppie30-Nov-05 19:29 
QuestionRead Another Programs Memory Pin
emiisdev30-Nov-05 17:07
emiisdev30-Nov-05 17:07 
AnswerRe: Read Another Programs Memory Pin
Rob Philpott30-Nov-05 23:09
Rob Philpott30-Nov-05 23:09 
GeneralRe: Read Another Programs Memory Pin
emiisdev1-Dec-05 5:20
emiisdev1-Dec-05 5:20 
GeneralRe: Read Another Programs Memory Pin
Rob Philpott1-Dec-05 6:07
Rob Philpott1-Dec-05 6:07 
AnswerRe: Read Another Programs Memory Pin
Dave Kreskowiak1-Dec-05 6:23
mveDave Kreskowiak1-Dec-05 6:23 
QuestionTo use CollectionBase or not to use collectionBase. That is the question Pin
Ista30-Nov-05 16:49
Ista30-Nov-05 16:49 
AnswerRe: To use CollectionBase or not to use collectionBase. That is the question Pin
Sean Michael Murphy30-Nov-05 18:13
Sean Michael Murphy30-Nov-05 18:13 
Ista wrote:
Okay so CollectionBase has a built in ArrayList. So collection creation is quick and easy

an IList doesn't, because well its an interface.

But, it's much lighter and IList can easily contain a ArrayList

Which would be recommended. CollectionBase is bulky but has all the housing.


The main advantage to inheriting from IList or one of the other collection interfaces (I prefer IEnumerable myself) is that your object can take its proper place in your object hierarchy. Since you can't do multiple inheritance, if your class extends CollectionBase you get a lot of "free" functionality, but you can't extend any other base class.

It's not that much extra code to implement the interface, you can throw in an indexer property to get your ArrayList-like accessor behaviour, and you get a lot more flexibility in the long run.

Just my 2 cents. Share and enjoy.
Sean
QuestionStatic Controls Pin
TheMajorRager30-Nov-05 13:49
TheMajorRager30-Nov-05 13:49 
AnswerRe: Static Controls Pin
Christian Graus30-Nov-05 14:03
protectorChristian Graus30-Nov-05 14:03 
QuestionHow do you get the grabber icon on a toolbars? Pin
TheBlindWatchmaker30-Nov-05 13:40
TheBlindWatchmaker30-Nov-05 13:40 
AnswerRe: How do you get the grabber icon on a toolbars? Pin
Andy Moore1-Dec-05 6:31
Andy Moore1-Dec-05 6:31 
GeneralRe: How do you get the grabber icon on a toolbars? Pin
TheBlindWatchmaker1-Dec-05 11:15
TheBlindWatchmaker1-Dec-05 11:15 
GeneralRe: How do you get the grabber icon on a toolbars? Pin
Andy Moore1-Dec-05 11:21
Andy Moore1-Dec-05 11:21 
QuestionBezier Curves and Text Pin
pende_bhanu30-Nov-05 11:31
pende_bhanu30-Nov-05 11:31 
QuestionQBE Grid Pin
Reanalyse30-Nov-05 11:08
Reanalyse30-Nov-05 11:08 
QuestionHow do you get the "dockable" icon on forms/controls? Pin
TheBlindWatchmaker30-Nov-05 10:51
TheBlindWatchmaker30-Nov-05 10:51 
AnswerRe: How do you get the "dockable" icon on forms/controls? Pin
Judah Gabriel Himango30-Nov-05 11:08
sponsorJudah Gabriel Himango30-Nov-05 11:08 
GeneralRe: How do you get the "dockable" icon on forms/controls? Pin
TheBlindWatchmaker30-Nov-05 13:43
TheBlindWatchmaker30-Nov-05 13:43 
QuestionVariable Name Pin
saborchulo30-Nov-05 10:41
saborchulo30-Nov-05 10:41 
AnswerRe: Variable Name Pin
Turtle Hand30-Nov-05 10:43
Turtle Hand30-Nov-05 10:43 
GeneralRe: Variable Name Pin
Judah Gabriel Himango30-Nov-05 11:12
sponsorJudah Gabriel Himango30-Nov-05 11:12 
AnswerRe: Variable Name Pin
Judah Gabriel Himango30-Nov-05 11:11
sponsorJudah Gabriel Himango30-Nov-05 11:11 
Questionissue of getting the names of all dial-up connections on a given system with API RasEnumEntries Pin
Vlada Nesic30-Nov-05 9:47
Vlada Nesic30-Nov-05 9:47 
QuestionResxResourceWriter not available Pin
malharone30-Nov-05 7:56
malharone30-Nov-05 7:56 

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.