Click here to Skip to main content
15,914,013 members
Home / Discussions / C#
   

C#

 
GeneralRe: ObjForScrpt Pin
Christopher Hernandez22-Oct-08 9:09
Christopher Hernandez22-Oct-08 9:09 
GeneralRe: ObjForScrpt Pin
Pete O'Hanlon22-Oct-08 9:27
mvePete O'Hanlon22-Oct-08 9:27 
AnswerRe: ObjForScrpt Pin
Paul Conrad21-Oct-08 5:53
professionalPaul Conrad21-Oct-08 5:53 
Questionlinked list in 2.0 and the error: Pin
nesfrank21-Oct-08 5:29
nesfrank21-Oct-08 5:29 
AnswerRe: linked list in 2.0 and the error: Pin
Ennis Ray Lynch, Jr.21-Oct-08 5:38
Ennis Ray Lynch, Jr.21-Oct-08 5:38 
GeneralRe: linked list in 2.0 and the error: Pin
nesfrank21-Oct-08 5:57
nesfrank21-Oct-08 5:57 
GeneralRe: linked list in 2.0 and the error: Pin
nesfrank21-Oct-08 6:07
nesfrank21-Oct-08 6:07 
GeneralRe: linked list in 2.0 and the error: [modified] Pin
Pedram Behroozi21-Oct-08 8:21
Pedram Behroozi21-Oct-08 8:21 
1st, I think it's better that you write your LinkedList like this:
LinkedList<string> ll = new LinkedList<string>();
LinkedListNode<string> lln = new LinkedListNode<string>(Console.ReadLine());
            
ll.AddFirst(lln);
LinkedListNode<string> Prelln = null;

while (true)
{
    Prelln = lln; // Save the current Node,
    
    string input = Console.ReadLine();
    if (input == "End") // If user type "End", Done!
        break;

    lln = new LinkedListNode<string>(input); // Otherwise, Add a new Node
    ll.AddAfter(Prelln, lln); // Add new Node after previous saved Node
}


It takes less memory. [Edit] However, It's your choice Wink | ;) [\Edit]
2nd, a simple foreach gets you your nodes, for this example:
foreach (string i in ll)
         Console.WriteLine(i);


While (true) { Human.isLearnable = true; }

modified on Tuesday, October 21, 2008 2:41 PM

QuestionC# DataGridView extension to allow Drag n Drop. Pin
Graham_421-Oct-08 5:22
Graham_421-Oct-08 5:22 
AnswerRe: C# DataGridView extension to allow Drag n Drop. Pin
led mike21-Oct-08 9:09
led mike21-Oct-08 9:09 
Questionselection of row on which i mouse right click button is clicked in true db grid Pin
tanvir209021-Oct-08 5:08
tanvir209021-Oct-08 5:08 
AnswerRe: selection of row on which i mouse right click button is clicked in true db grid Pin
Ashfield21-Oct-08 5:12
Ashfield21-Oct-08 5:12 
GeneralPaginated UI Pin
hairy_hats21-Oct-08 4:20
hairy_hats21-Oct-08 4:20 
GeneralRe: Paginated UI Pin
Ennis Ray Lynch, Jr.21-Oct-08 4:46
Ennis Ray Lynch, Jr.21-Oct-08 4:46 
QuestionHow can we get total days of the month? Pin
ATC21-Oct-08 4:04
ATC21-Oct-08 4:04 
QuestionRe: How can we get total days of the month? Pin
Eddy Vluggen21-Oct-08 4:16
professionalEddy Vluggen21-Oct-08 4:16 
AnswerRe: How can we get total days of the month? Pin
Guffa21-Oct-08 14:20
Guffa21-Oct-08 14:20 
QuestionHow to execute a SQL request thru a Thread Pin
magpierre21-Oct-08 4:01
magpierre21-Oct-08 4:01 
AnswerRe: How to execute a SQL request thru a Thread Pin
Eddy Vluggen21-Oct-08 4:16
professionalEddy Vluggen21-Oct-08 4:16 
Questionopening multi forms Pin
Miss_hacker21-Oct-08 3:14
Miss_hacker21-Oct-08 3:14 
AnswerRe: opening multi forms Pin
leppie21-Oct-08 3:16
leppie21-Oct-08 3:16 
AnswerRe: opening multi forms Pin
Wendelius21-Oct-08 8:18
mentorWendelius21-Oct-08 8:18 
AnswerRe: opening multi forms Pin
nelsonpaixao21-Oct-08 11:58
nelsonpaixao21-Oct-08 11:58 
QuestionGeneral UI Question - Anybody can have a go at this one Pin
MrEyes21-Oct-08 2:16
MrEyes21-Oct-08 2:16 
AnswerRe: General UI Question - Anybody can have a go at this one Pin
Eduard Keilholz21-Oct-08 2:40
Eduard Keilholz21-Oct-08 2:40 

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.