byte[] btyes = new byte[20]; btyes.Where(x => string.IsNullOrEmpty(x.ToString())).ToList().ForEach(y => y=0); foreach (var btye in btyes) { Console.WriteLine(btye); }