Created
May 20, 2021 18:14
-
-
Save Lahirutech/b254831a3b995d2576e4d81eddde7105 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add elements using .Add() Method | |
var myArrayList = new ArrayList(); | |
myArrayList.Add(123); | |
myArrayList.Add("Freelancingcult.com"); | |
myArrayList.Add(5.963); | |
// adding elements using object initializer syntax method | |
var myAraylist2 = new ArrayList() | |
{ | |
"Culure", 452, " ", true, 4.5, null | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment