Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 public UserInfo GetUserInfoByObject(UserInfo input)
 {
     input.Intro = string.Format("GetUserInfoByObject 姓名:{0},年龄:{1}", input.UserName, input.Age);
     return input;
 }