logo       

Re: Moving object order in a collection in C#: msg#00044

Subject: Re: Moving object order in a collection in C#
http://www.csharphelp.com/archives/archive14.html

On 8/23/05, Justin Collum <jcollum@xxxxxxxxx> wrote: 
> 
> There is a Queue object in C#, would that help? You could stow them in the 
> queue in the new order (or the reverse, can't remember which). 
> 
> On 8/23/05, Keith R. Pinster <dimondwoof@xxxxxxxxx> wrote: 
> > 
> > I've got an object that has a set of sub-objects. I want to be able to 
> > retrieve the sub-objects in a certain order. Is there a way to change 
> > the index of the sub-objects?
> > 
> > E.G:
> > Favorites:
> > Cars:
> > 1. Corvette
> > 2. Nova
> > 3. Firebird
> > 
> > User wants to change the order so that it reads:
> > 1. Corvette
> > 2. Firebird
> > 3. Nova
> > 
> > Currently I'm tracking the order with an Order int field, but this 
> > seems really messy and error prone. Any ideas?
> > 
> > 
> > 
> >  ------------------------------
> > YAHOO! GROUPS LINKS 
> > 
> > 
> >    - Visit your group "padnug <http://groups.yahoo.com/group/padnug>" 
> >    on the web.
> >     - To unsubscribe from this group, send an email to:
> >    padnug-unsubscribe@xxxxxxxxxxxxxxx 
> >    <padnug-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe>
> >     - Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
> >    Service <http://docs.yahoo.com/info/terms/>.
> > 
> > 
> >  ------------------------------
> > 
> 
>


[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12hkemnn1/M=362131.6882499.7825260.1510227/D=groups/S=1705007709:TM/Y=YAHOO/EXP=1124824703/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
- brought to you by One Economy</a>.</font>
--------------------------------------------------------------------~-> 

 


<Prev in Thread] Current Thread [Next in Thread>