public bool IsUncheckedOrEmpty() { switch (Type) { case 1: return(Radios.Any(p => p.Checked == true)); case 2: return(CheckBoxs.Any(p => p.Checked)); case 3: return(string.IsNullOrEmpty(Text.Text)); //---by hp--- case 4: return(Texts.All(p => !string.IsNullOrEmpty(p.Text)) && Radios.Any(p => p.Checked)); //---by hp end--- default: return(false); } }