if (Post_Code_PAR != null) { String[] PostCode_Array = Post_Code_PAR.Split(','); query = from p in query where PostCode_Array.Contains(p.Post_Code) select p; }
String[] PostCode_Array = from p in Post_Code_PAR.Split(',') select String.Format("^{0}$", p.Replace("", @"\d")); query = from p in query where PostCode_Array.Any(pattern => Regex.IsMatch(p.Post_Code, pattern)) select p;
String[] PostCode_Array = (from p in Post_Code_PAR.Split(',') select String.Format("^{0}$", p.Replace("", @"\d"))) .ToArray();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)