using System.Collections; ArrayList arr = new ArrayList(); arr.Add("123"); arr.Add("abc"); string s = "abc"; bool b = arr.Contains(s); Console.WriteLi ...
using System.Collections;
ArrayList arr = new ArrayList();
arr.Add("123");
arr.Add("abc");
string s = "abc";
bool b = arr.Contains(s);
Console.WriteLine(b);
輸出為 true