Re: no indexof-function for collection object available.
- From: "Chris Murphy via DotNetMonster.com" <forum@xxxxxxxxxxxxxxxxx>
- Date: Thu, 07 Apr 2005 19:58:49 GMT
I've just wrapped up development on a small project that deals with similar
issues. What I ended up doing is writing 2 classes. One was a manager class
that handled all the add/edit/delete/sort routines and implemented
ICollectionsBase interface. I essentially wrote or overloaded collection
routines to affect the collection/innerlist. It's actually quite easy and
intuitive, check out http://www.codeproject.com for some samples. Now the
second class that I wrote was an object that the manager used, taking the
name/value pairs loaded in from the XML file. By adding instances of this
object to my manager class I was able to use InnerList.Items.IndexOf
("string") to locate elements in the collection. The manager class had a
property which would contain a reference to the current element I was
editing. Add a little serialization/deserialzation support and you have a
pretty useful tool. In any case I hope this helps or points you in the
right direction.
--
Message posted via http://www.dotnetmonster.com
.
- Follow-Ups:
- Re: no indexof-function for collection object available.
- From: aaapaul
- Re: no indexof-function for collection object available.
- References:
- no indexof-function for collection object available.
- From: aaapaul
- Re: no indexof-function for collection object available.
- From: rawCoder
- Re: no indexof-function for collection object available.
- From: aaapaul
- Re: no indexof-function for collection object available.
- From: Cor Ligthert
- Re: no indexof-function for collection object available.
- From: aaapaul
- no indexof-function for collection object available.
- Prev by Date: Re: Difference between Trim function and Trim member
- Next by Date: Re: XMLReader and VB.Net
- Previous by thread: Re: no indexof-function for collection object available.
- Next by thread: Re: no indexof-function for collection object available.
- Index(es):
Relevant Pages
|
Loading