Declaring



Add


System.Collections.Generic.List<string> mycollection; 
mycollection = new System.Collections.Generic.List<string>(3);
mycollection.Add("one");
mycollection.Add("two");
mycollection.Add("three");

System.Collections.Generic.List<string> lstKeys;
lstKeys = new System.Collections.Generic.List<string>
lstKeys.Add "mystring"
Dim lstKeys As System.Collections.Generic.List(Of String) 
lstKeys = New System.Collections.Generic.List(of String)
lstKeys.Add "mystring"

System.Collections.Generic.List<onject> mycollection; 
mycollection = new System.Collections.Generic.List<string>(3);
mycollection.Add(new object[] {"text",50,False)};

AddRange


?? 
Dim sConCat as String 
sConCat = "one;two;three"
lstKeys.AddRange(sConCat.Split(Ctype(";", Char)))


© 2020 Better Solutions Limited. All Rights Reserved. © 2020 Better Solutions Limited TopPrevNext