This compiles:
public interface IBookCatalogueView
{
Book[] Books
{
get;
set;
}
}
This doesn't, giving the error "Interfaces cannot contain fields"
public interface IBookCatalogueView
{
List<Book> Books
{
get;
set;
}
}
>
Why? How can I define a property that's a list in an interface?