Created
May 22, 2021 11:41
-
-
Save Lahirutech/f86f27857917baf4ddd0dd4161e5693d to your computer and use it in GitHub Desktop.
This file contains hidden or 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, | |
300 | |
}; | |
Console.WriteLine(arList.Contains(300)); // true | |
Console.WriteLine(arList.Contains("Bill")); // true | |
Console.WriteLine(arList.Contains(10)); // false | |
Console.WriteLine(arList.Contains("Steve")); // false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment