static void Main(string[] args) { var r = FastMap.Mapper <UserInfo, Users>(new UserInfo() { UserName = "******", Age = 12, Id = "23", psw = 345 }, MapType.PTP, new Action <UserInfo, Users>((k, V) => { V.Name = k.UserName; })); r = FastMap.Mapper <UserInfo, Users>(new UserInfo() { UserName = "******", Age = 12, Id = "23", psw = 345 }, MapType.PTP, new Action <UserInfo, Users>((k, V) => { V.Name = k.UserName; })); var r = FastMap.Mapper <Users>(new UserInfo() { UserName = "******", Age = 12, Id = "23", psw = 345 }, MapType.FTF); }