Created
May 22, 2021 11:14
-
-
Save Lahirutech/87712a5de588b77ab1afce34e166644c 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
ArrayList arlist = new ArrayList() | |
{ | |
1, | |
"Bill", | |
300, | |
4.5F | |
}; | |
foreach (var item in arlist) | |
Console.Write(item + ", "); //output: 1, Bill, 300, 4.5, | |
for(int i = 0 ; i < arlist.Count; i++) | |
Console.Write(arlist[i] + ", "); //output: 1, Bill, 300, 4.5, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment