 
  Data Structure Data Structure
 Networking Networking
 RDBMS RDBMS
 Operating System Operating System
 Java Java
 MS Excel MS Excel
 iOS iOS
 HTML HTML
 CSS CSS
 Android Android
 Python Python
 C Programming C Programming
 C++ C++
 C# C#
 MongoDB MongoDB
 MySQL MySQL
 Javascript Javascript
 PHP PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
LinkedList AddLast method in C#
Declare a string array.
string [] students = {"Jenifer","Angelina","Vera"}; Add it to a LinkedList.
string [] students = {"Jenifer","Angelina","Vera"}; Now, use AddLast() method to add a node at the end.
list.AddLast("Anne"); Example
using System; using System.Collections.Generic; class Demo {    static void Main() {       string [] students = {"Jenifer","Angelina","Vera"};       LinkedList<string> list = new LinkedList<string>(students);       foreach (var stu in list) {          Console.WriteLine(stu);       }       // add a node at the end       Console.WriteLine("Node added at the last...");       list.AddLast("Anne");       foreach (var stu in list) {          Console.WriteLine(stu);       }    } }  Output
Jenifer Angelina Vera Node added at the last... Jenifer Angelina Vera Anne
Advertisements
 