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()
{
...
}
精彩评论