Questions tagged [collectionbase]

19 questions
0
votes
2 answers

C# get/set results in Stack Overflow

I'm getting a stack overflow from using the get/set part of my index. I've tried putting the values into a list instead in the get set but with bad results. class TrackList : CollectionBase { public Tracks this[int i] { get …
Rohkin
  • 13
  • 2
0
votes
1 answer

Utilisation of a Dictionary like class

For the purpose of XML serialisation I had to disband a Dictionary collection I was using. I wrote a very straightforward alternative which consists of 2 classes: NameValueItem: contains Name (Key) and Value NameValueCollection: derived from…
user1092809
  • 107
  • 1
  • 7
0
votes
1 answer

CollectionBase no IList implementation?

Would anyone explain to me why in the abstract CollectionBase class (in System.Collections which derives from IList) it does not have the IList members implemented? I thought it was obligatory.
Mikatsu
  • 530
  • 2
  • 4
  • 15
-3
votes
1 answer

Assign a Collection class to the items of a list box

I'm sure there should be an easier way to do this. I have a class based on Collection, and that class is a collection of another class. Currently, whenever I have a new item in my class, I assign that item to the listbox. I can't seem to figure out…
Chloe
  • 483
  • 4
  • 14
1
2