Click here to Skip to main content
16,007,472 members
Home / Discussions / C#
   

C#

 
GeneralRe: DoubleBuffer Exception Pin
Amberite0015-Mar-04 17:32
Amberite0015-Mar-04 17:32 
GeneralRe: DoubleBuffer Exception Pin
John Fisher16-Mar-04 12:49
John Fisher16-Mar-04 12:49 
GeneralRe: DoubleBuffer Exception Pin
Heath Stewart16-Mar-04 3:15
protectorHeath Stewart16-Mar-04 3:15 
GeneralRe: DoubleBuffer Exception Pin
John Fisher16-Mar-04 12:48
John Fisher16-Mar-04 12:48 
GeneralRe: DoubleBuffer Exception Pin
Heath Stewart16-Mar-04 3:18
protectorHeath Stewart16-Mar-04 3:18 
QuestionInsert new Array ? Pin
azusakt15-Mar-04 16:24
azusakt15-Mar-04 16:24 
AnswerRe: Insert new Array ? Pin
John Fisher15-Mar-04 17:03
John Fisher15-Mar-04 17:03 
AnswerRe: Insert new Array ? Pin
Heath Stewart16-Mar-04 3:13
protectorHeath Stewart16-Mar-04 3:13 
You could also always extend CollectionBase (or make your own, which would implement IList which implements ICollection and IEnumerable) and make strongly-typed params for the type you want. The CollectionBase (and many other collections, for that matter) use a backing ArrayList to store objects, but by having typed parameters you avoid putting objects of different Types in the list because the compiler would fail if you tried adding something else. Extending CollectionBase isn't hard (see the documentation in the .NET Framework SDK for information on which methods have to be overridden and an example) and ensures that you won't add an instance of a different Type to the list.

 

Microsoft MVP, Visual C#
My Articles
GeneralConvert from true type font to vector image Pin
Zhang Songling15-Mar-04 15:32
Zhang Songling15-Mar-04 15:32 
GeneralRe: Convert from true type font to vector image Pin
Heath Stewart16-Mar-04 3:09
protectorHeath Stewart16-Mar-04 3:09 
QuestionC# and XSLT [ Bug ] ? Pin
Matthew Hazlett15-Mar-04 14:34
Matthew Hazlett15-Mar-04 14:34 
AnswerRe: C# and XSLT [ Bug ] ? Pin
Matthew Hazlett15-Mar-04 19:46
Matthew Hazlett15-Mar-04 19:46 
AnswerRe: C# and XSLT [ Bug ] ? Pin
Heath Stewart16-Mar-04 3:00
protectorHeath Stewart16-Mar-04 3:00 
Generaliterate through enum Pin
Christian Graus15-Mar-04 13:14
protectorChristian Graus15-Mar-04 13:14 
GeneralRe: iterate through enum Pin
Christian Graus15-Mar-04 14:34
protectorChristian Graus15-Mar-04 14:34 
GeneralForms & variables & suchlike Pin
surgeproof15-Mar-04 10:54
surgeproof15-Mar-04 10:54 
GeneralRe: Forms & variables & suchlike Pin
Judah Gabriel Himango15-Mar-04 11:07
sponsorJudah Gabriel Himango15-Mar-04 11:07 
GeneralRe: Forms & variables & suchlike Pin
surgeproof16-Mar-04 8:16
surgeproof16-Mar-04 8:16 
GeneralRe: Forms & variables & suchlike Pin
surgeproof17-Mar-04 6:38
surgeproof17-Mar-04 6:38 
GeneralProcessDialogKey and AppDomain Pin
zilch15-Mar-04 9:37
zilch15-Mar-04 9:37 
GeneralRe: ProcessDialogKey and AppDomain Pin
Heath Stewart15-Mar-04 9:55
protectorHeath Stewart15-Mar-04 9:55 
GeneralRe: ProcessDialogKey and AppDomain Pin
Nemanja Trifunovic15-Mar-04 10:23
Nemanja Trifunovic15-Mar-04 10:23 
GeneralRe: ProcessDialogKey and AppDomain Pin
Heath Stewart15-Mar-04 10:50
protectorHeath Stewart15-Mar-04 10:50 
GeneralRe: ProcessDialogKey and AppDomain Pin
zilch15-Mar-04 10:34
zilch15-Mar-04 10:34 
GeneralRe: ProcessDialogKey and AppDomain Pin
Heath Stewart15-Mar-04 10:48
protectorHeath Stewart15-Mar-04 10:48 

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.