开发者

error method must have an return type

This is my class file I am getting an error as "method must have an return type"

public class Users 
{
  public string FirstName { get; set; }
  public string LastName { get; set; }
}
public class UsersList : List<Users>
{
  public UsersList 
 {
   this.Add(new Users(开发者_Python百科) { FirstName = "John", LastName = "Lock"}); 
   this.Add(new Users() { FirstName = "James", LastName = "Soyer"}); 
   this.Add(new Users() { FirstName = "Jack", LastName = "Sephered"}); 
 }
}

I am trying to Binding to a Static Resource of a Collection of Custom Instances


...

public UsersList()
{
    ...
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜