using System.Collections.Generic;
public static void Main()
List<string> list = new List<string>();
list.Add("1234 - Hello");
list.Add("4234 - There");
list.Add("2342 - World");
string result = list.FirstOrDefault(s => s.Contains(srch));
Console.WriteLine(result);
var paymentOptions = new List<string> {"Net 20 Days", "Net 45 Days", "Net 10 Days"};
const string paymentMethod= "PO NET 45";
Console.WriteLine("Payment Method found");
Console.WriteLine("Payment Method not found");
var items = paymentOptions.Where(customerToPaymentOption => paymentMethod.IndexOf(paymentMethod, System.StringComparison.Ordinal) > 0);
Console.WriteLine(items.Count());