using System;
using System.Collections.Generic;
class Program {
static void Main() {
Console.WriteLine(HasItem(new List<string>(), null));
try {
Console.WriteLine(HasItem(new SortedList<string, int>().Keys, null));
} catch (ArgumentNullException) {
Console.WriteLine("ArgumentNullException");
}
}
public static bool HasItem(ICollection<string> collection, string item) {
return collection.Contains(item);
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uQ29sbGVjdGlvbnMuR2VuZXJpYzsKCmNsYXNzIFByb2dyYW0gewogICAgc3RhdGljIHZvaWQgTWFpbigpIHsKICAgICAgICBDb25zb2xlLldyaXRlTGluZShIYXNJdGVtKG5ldyBMaXN0PHN0cmluZz4oKSwgbnVsbCkpOwogICAgICAgIHRyeSB7CiAgICAgICAgCUNvbnNvbGUuV3JpdGVMaW5lKEhhc0l0ZW0obmV3IFNvcnRlZExpc3Q8c3RyaW5nLCBpbnQ+KCkuS2V5cywgbnVsbCkpOwogICAgCX0gY2F0Y2ggKEFyZ3VtZW50TnVsbEV4Y2VwdGlvbikgewogICAgICAgIAlDb25zb2xlLldyaXRlTGluZSgiQXJndW1lbnROdWxsRXhjZXB0aW9uIik7CiAgICAJfQogICAgfQoKICAgIHB1YmxpYyBzdGF0aWMgYm9vbCBIYXNJdGVtKElDb2xsZWN0aW9uPHN0cmluZz4gY29sbGVjdGlvbiwgc3RyaW5nIGl0ZW0pIHsKICAgICAgICByZXR1cm4gY29sbGVjdGlvbi5Db250YWlucyhpdGVtKTsKICAgIH0KfQ==