C# List<T>C# List<T> class is used to store and fetch elements. It can have duplicate elements. It is found in System.Collections.Generic namespace. C# List<T> exampleLet's see an example of generic List<T> class that stores elements using Add() method and iterates the list using for-each loop. Output: Sonoo Jaiswal Ankit Peter Irfan C# List<T> example using collection initializerOutput: Sonoo Vimal Ratan Love Next TopicC# HashSet |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India