var MainSkill = string.Join(",", SkillId.Where(x => x != null && !string.IsNullOrWhiteSpace(x.ToString())));
//first remove empty string test = test.Where(x => !string.IsNullOrEmpty(SkillId)).ToArray(); //now concatenate it var MainSkill = string.Join(",", test);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)