Answers for "c# list in function"

C#
1

c# list

using System.Collections.Generic;

private List<string> list;  //creates list named list of type string

list.Add(string); //adds string at last index of list
list.Count;  //get length of list
list.Insert(2,"pos 2");  // Insert string "pos 2" in position 2
list[i];  //get item from index i
Posted by: Guest on December-11-2021
0

list C#

List<string> names = new List<string>();List<Object> someObjects = new List<Object>();
Posted by: Guest on September-25-2021

C# Answers by Framework

Browse Popular Code Answers by Language