示例#1
0
        public static bool isUniqAllId(List <FreelanceTask> list)
        {
            BaseId bi = new BaseId();

            foreach (var item in list)
            {
                if (!bi.IsId(item.Id, false))
                {
                    return(false);
                }
            }

            return(true);
        }
示例#2
0
        public static List <FreelanceTask> getUniqElements(List <FreelanceTask> old_list)
        {
            List <FreelanceTask> list = new List <FreelanceTask>();
            BaseId bi = new BaseId();

            foreach (var item in old_list)
            {
                if (bi.IsId(item.Id))
                {
                    list.Add(item);
                }
            }

            return(list);
        }