예제 #1
0
        public static DTO.TaskType ToDTO(this TaskType source)
        {
            var h = new DTO.TaskType();

            h.TypeName = source.TypeName;
            if (source.AnyAttr != null)
            {
                h.AnyAttr = source.AnyAttr.ToArray();
            }
            return(h);
        }
예제 #2
0
        public static TaskType FromDTO(this DTO.TaskType source)
        {
            var h = new TaskType();

            h.TypeName = source.TypeName;
            if (source.AnyAttr != null)
            {
                h.AnyAttr = source.AnyAttr.ToList();
            }
            return(h);
        }
예제 #3
0
 public static DTO.TaskType ToDTO(this TaskType source)
 {
     var h = new DTO.TaskType();
     h.TypeName = source.TypeName;
     if (source.AnyAttr != null)
         h.AnyAttr = source.AnyAttr.ToArray();
     return h;
 }