Click here to Skip to main content
15,905,028 members
Home / Discussions / C#
   

C#

 
JokeRe: create your own version of arraylist in c#?? Pin
Luc Pattyn17-Jul-08 6:02
sitebuilderLuc Pattyn17-Jul-08 6:02 
GeneralRe: create your own version of arraylist in c#?? Pin
Dan Neely17-Jul-08 6:48
Dan Neely17-Jul-08 6:48 
GeneralRe: create your own version of arraylist in c#?? Pin
DaveyM6917-Jul-08 10:04
professionalDaveyM6917-Jul-08 10:04 
GeneralRe: create your own version of arraylist in c#?? Pin
lolla200617-Jul-08 9:59
lolla200617-Jul-08 9:59 
GeneralRe: create your own version of arraylist in c#?? [modified] Pin
lolla200617-Jul-08 9:51
lolla200617-Jul-08 9:51 
AnswerRe: create your own version of arraylist in c#?? Pin
Guffa17-Jul-08 9:00
Guffa17-Jul-08 9:00 
GeneralRe: create your own version of arraylist in c#?? Pin
lolla200617-Jul-08 9:55
lolla200617-Jul-08 9:55 
GeneralRe: create your own version of arraylist in c#?? Pin
Guffa17-Jul-08 11:08
Guffa17-Jul-08 11:08 
That's pretty basic:

1. Locate the node before the range and the node after the range (just loop and count).
2. Make the node after the range the next node for the node before the range, and make the node before the range the previous node for the node after the range.

You have to check for two special cases, though. If the first node in the range is the first in the list, there is no node before, and you have to change the first variable of the list instead. If the last node in the range is the last node, there is no node after, and you have to change the last variable of the list instead.

Despite everything, the person most likely to be fooling you next is yourself.

GeneralRe: create your own version of arraylist in c#?? Pin
lolla200618-Jul-08 5:17
lolla200618-Jul-08 5:17 
GeneralRe: create your own version of arraylist in c#?? Pin
lolla200618-Jul-08 5:24
lolla200618-Jul-08 5:24 
GeneralRe: create your own version of arraylist in c#?? Pin
DaveyM6918-Jul-08 6:32
professionalDaveyM6918-Jul-08 6:32 
AnswerRe: create your own version of arraylist in c#?? Pin
Pete O'Hanlon17-Jul-08 10:03
mvePete O'Hanlon17-Jul-08 10:03 
GeneralRe: create your own version of arraylist in c#?? Pin
lolla200617-Jul-08 10:11
lolla200617-Jul-08 10:11 
GeneralRe: create your own version of arraylist in c#?? Pin
Pete O'Hanlon17-Jul-08 10:18
mvePete O'Hanlon17-Jul-08 10:18 
GeneralRe: create your own version of arraylist in c#?? Pin
lolla200617-Jul-08 10:35
lolla200617-Jul-08 10:35 
GeneralRe: create your own version of arraylist in c#?? Pin
Pete O'Hanlon17-Jul-08 10:41
mvePete O'Hanlon17-Jul-08 10:41 
QuestionHello. Small Help Needed. Pin
nt_virus17-Jul-08 4:17
nt_virus17-Jul-08 4:17 
AnswerRe: Hello. Small Help Needed. Pin
Christian Graus17-Jul-08 4:24
protectorChristian Graus17-Jul-08 4:24 
AnswerRe: Hello. Small Help Needed. Pin
J4amieC17-Jul-08 4:24
J4amieC17-Jul-08 4:24 
AnswerRe: Hello. Small Help Needed. Pin
nt_virus17-Jul-08 18:45
nt_virus17-Jul-08 18:45 
QuestionGroupBox OnPaint applying to all child controls Pin
Chris Copeland17-Jul-08 3:31
mveChris Copeland17-Jul-08 3:31 
AnswerRe: GroupBox OnPaint applying to all child controls Pin
half-life17-Jul-08 5:43
half-life17-Jul-08 5:43 
GeneralRe: GroupBox OnPaint applying to all child controls Pin
Chris Copeland17-Jul-08 13:33
mveChris Copeland17-Jul-08 13:33 
QuestionidentityHashCode Pin
DwR17-Jul-08 3:26
DwR17-Jul-08 3:26 
AnswerRe: identityHashCode Pin
Green Fuze18-Jul-08 2:47
Green Fuze18-Jul-08 2:47 

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.