Click here to Skip to main content
15,921,452 members
Home / Discussions / C#
   

C#

 
GeneralRe: Data Validation Question Pin
Harvey Saayman18-Jul-08 4:54
Harvey Saayman18-Jul-08 4:54 
Questioncreate your own version of arraylist in c#?? Pin
lolla200617-Jul-08 4:42
lolla200617-Jul-08 4:42 
AnswerRe: create your own version of arraylist in c#?? Pin
Christian Graus17-Jul-08 4:58
protectorChristian Graus17-Jul-08 4:58 
GeneralRe: create your own version of arraylist in c#?? Pin
lolla200617-Jul-08 9:39
lolla200617-Jul-08 9:39 
GeneralRe: create your own version of arraylist in c#?? Pin
z3irr19-Jul-08 0:56
z3irr19-Jul-08 0:56 
AnswerRe: create your own version of arraylist in c#?? Pin
Dan Neely17-Jul-08 5:05
Dan Neely17-Jul-08 5:05 
AnswerRe: create your own version of arraylist in c#?? Pin
Dan Neely17-Jul-08 5:07
Dan Neely17-Jul-08 5:07 
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 
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 
the code that makes the first error is :
public bool Contains(Object ValueToBeSerched)
        {
            Node WalkTheList = new Node();
            WalkTheList = Root;
            while (WalkTheList.getnextNode() != null)
            {
                if (WalkTheList.getvalue() == ValueToBeSerched)
                    return true;
                else
                    WalkTheList = WalkTheList.getnextNode();

            }
            if (WalkTheList.getnextNode() == null)
                return false;


        }//done contains


the second error is the same but in this method :
public int IndexOf(Object ValueToGetIndex)
        {
            Node WalkTheList = new Node();
            WalkTheList = Root;
            while (WalkTheList.getnextNode() != null)
            {
                if (!WalkTheList.getvalue().Equals(ValueToGetIndex))
                    WalkTheList.getnextNode();
                else
                    return WalkTheList.getIndex();
            }
        }//done index of


the code that generates the third error is this:
public void Sort()
       {
           Node WalkTheList = new Node();
           Node Walker = new Node();
           WalkTheList = Root;
           Walker = Walker.getnextNode();
           while (WalkTheList.getnextNode() != null)
           {
              if (WalkTheList.getvalue() > Walker.getvalue())
               {
                   Object temp=null;
                   temp=WalkTheList.getvalue();
                   WalkTheList.setvalue(Walker.getvalue());
                   Walker.setvalue(temp);
               }
               WalkTheList = WalkTheList.getnextNode();
           }
       }//done sorting


appratiate your helpConfused | :confused:

while(1)
System.out.println("I love Palestine ");

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 

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.