BKI_DichVuMatDat.BaoCao.f491_rpt_bao_cao_tong_hop_thu_nhap_theo_nam.GetAll C# (CSharp) Метод

GetAll() публичный Метод

public GetAll ( Control control, Type type ) : IEnumerable
control Control
type Type
Результат IEnumerable
        public IEnumerable<Control> GetAll(Control control, Type type)
        {
            var controls = control.Controls.Cast<Control>();

            return controls.SelectMany(ctrl => GetAll(ctrl, type))
                                      .Concat(controls)
                                      .Where(c => c.GetType() == type);
        }