![]() |
List.Add(T) Method is used to add an object to the end of the List. Properties of List:
Syntax: public void Add (T item); Parameter:
Below programs illustrate how to add an element in List: Example 1:
Output: 8 10 12 14 16 18 Example 2:
Output: 1 2 3 4 3 4 Reference: |
Reffered: https://www.geeksforgeeks.org
C# |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 8 |