public UserInfo GetUserInfoByParams(string UserName, int Age) { UserInfo input = new UserInfo() { UserName = UserName, Age = Age }; input.Intro = string.Format("GetUserInfoByParams 姓名:{0},年龄:{1}", input.UserName, input.Age); return input; }
public UserInfo GetUserInfoByObject(UserInfo input) { input.Intro = string.Format("GetUserInfoByObject 姓名:{0},年龄:{1}", input.UserName, input.Age); return input; }