示例#1
0
        public void DemoListInfo(List <Demo> demos)
        {
            DemoInfoDelegate demoInfoDelegate = DemoInfo;

            foreach (var item in demos)
            {
                demoInfoDelegate(item);
            }
        }
示例#2
0
        public void DemoListInfoGerade(DemoInfoDelegate demoInfoDelegate, List <Demo> demos)
        {
            var list = demos.FindAll(d => d.Id > 3);

            foreach (var item in demos)
            {
                demoInfoDelegate(item);
            }
        }