public static PropertyMapItem Create(string name, IProfile from, IProfile to, string fromName, string toName) { var map = new PropertyMapItem(); map.name = name; map.to = to.GetProperty(toName); map.from = from.GetProperty(fromName); return(map); }
public static PropertyMapItem Create(string name, IProfileProperty from, IProfileProperty to) { var map = new PropertyMapItem(); map.name = name; map.to = to; map.from = from; return(map); }