Ejemplo n.º 1
0
        public static DTO.PathDataType ToDTO(this PathDataType source)
        {
            var h = new DTO.PathDataType();

            h.Path     = source.Path;
            h.UserData = source.UserData;
            if (source.Exclusion != null)
            {
                h.Exclusion = source.Exclusion.ConvertAll(wld => wld.ToDTO()).ToArray();
            }
            if (source.Inclusion != null)
            {
                h.Inclusion = source.Inclusion.ConvertAll(wld => wld.ToDTO()).ToArray();
            }
            return(h);
        }
Ejemplo n.º 2
0
        public static PathDataType FromDTO(this DTO.PathDataType source)
        {
            var h = new PathDataType();

            h.Path     = source.Path;
            h.UserData = source.UserData;
            //h.Exclusion = source.Exclusion.ToList().ConvertAll(wld => wld.FromDTO());
            //h.Inclusion = source.Inclusion.ToList().ConvertAll(wld => wld.FromDTO());
            if (source.Exclusion != null)
            {
                h.Exclusion = source.Exclusion.Select(wld => wld.FromDTO()).ToList();
            }
            if (source.Inclusion != null)
            {
                h.Inclusion = source.Inclusion.Select(wld => wld.FromDTO()).ToList();
            }
            return(h);
        }
Ejemplo n.º 3
0
 public static DTO.PathDataType ToDTO(this PathDataType source)
 {
     var h = new DTO.PathDataType();
     h.Path = source.Path;
     h.UserData = source.UserData;
     if (source.Exclusion != null)
         h.Exclusion = source.Exclusion.ConvertAll(wld => wld.ToDTO()).ToArray();
     if (source.Inclusion != null)
         h.Inclusion = source.Inclusion.ConvertAll(wld => wld.ToDTO()).ToArray();
     return h;
 }