var Serialnumberentered = from a in serialNumbercheck group a by new { a } into g where g.Count() > 1 select new { g.Key };
where
empty
var Serialnumberentered = from a in serialNumbercheck //For .NET 2.0 and 3.5 where a == null ? false : a.Trim() != string.Empty //or where (a ?? "").Trim()!= string.Empty where !string.IsNullOrWhiteSpace(a) group a by new { a } into g where g.Count() > 1 select new { g.Key };
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)