コード例 #1
0
        private List <KTResourceSimpleView> GetNewList(IEnumerable <KTResource> list)
        {
            List <KTResourceSimpleView> listNew = new List <KTResourceSimpleView>();

            for (int i = 0; i < list.Count(); i++)
            {
                KTResource resource = list.ElementAt(i);
                resource.avatarUrl = KTUtils.GetAvatar(resource);
                KTResourceSimpleView newobj = KTUtils.AutoCopy2 <KTResource, KTResourceSimpleView>(resource);
                listNew.Add(newobj);
            }
            return(listNew);
        }
コード例 #2
0
        private List <KTResourceExt> GetNewList(IEnumerable <KTResource> list)
        {
            List <KTResourceExt> list2 = new List <KTResourceExt>();

            for (int i = 0; i < list.Count(); i++)
            {
                KTResource    issueStatus = list.ElementAt(i);
                KTResourceExt obj         = KTUtils.AutoCopy <KTResource, KTResourceExt>(issueStatus);
                obj.myAvatar = KTUtils.GetAvatar(issueStatus);
                list2.Add(obj);
            }

            return(list2);
        }