开发者

error method must have an return type

开发者 https://www.devze.com 2023-02-27 04:22 出处:网络
This is my classfile I am getting an erroras\"method must have an return type\" public class Users { public string FirstName { get; set; }

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

精彩评论

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