newbe- objects

  • Thread starter Thread starter Wes McCaslin
  • Start date Start date
W

Wes McCaslin

I have to demonstrate the usage of a collection class. The instructor whats
us to give him text fields to create objects for the collection class. I
don't understand what he means. Any help on this matter would be really
helpful.
 
The best I could offer you is, does he want to build a Name Value
collection?

Wherein,

you offer 2 textboxes, one is name, one is value, and button that says add
to collection. And then show a list of these collection objects in
something?

Thats the best I can think of. If so, look at the System.Collections
namespace (even System.Collections.Specialized) and look at various
collection types. And something like this, you may want to look at
DictionaryBase or IDictionary however, this requires understanding
inheritance, etc.

Probably just wants a NameValueCollection... but I don't know, its a little
vague.

-CJ
 
Wes McCaslin said:
I have to demonstrate the usage of a collection class. The instructor whats
us to give him text fields to create objects for the collection class. I
don't understand what he means. Any help on this matter would be really
helpful.

Maybe he wants you to create an application that has a textbox and a
button. By clicking on the button, the text typed into the textbox will
be added as a new item to the collection. After doing that, the
contents of the collection can be displayed in a listbox control for
demonstration purposes (for example).
 
Back
Top