using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Chop { public static class Helper { public static bool ContainsNumber(string s) { return s.ToCharArray().Any(char.IsNumber); } public static bool ContainsOtherChars(string s, string chars) { return s.ToCharArray().Any(c => !chars.Contains(c)); } public static bool ConvertToBool(object o) { if (o.ToString() == "1") return true; return false; } } }