Tuesday, 3 April 2018

C# collections: List or IEnumerable

For example, my method of service should return collection of objects.
I can declare it as:




public interface IBillComService
{
Task> RecurringInvoiceListAsync(int start,
}


or:



public interface IBillComService
{

Task> RecurringInvoiceListAsync(int start,
}


What is more preferred?

No comments:

Post a Comment

casting - Why wasn't Tobey Maguire in The Amazing Spider-Man? - Movies & TV

In the Spider-Man franchise, Tobey Maguire is an outstanding performer as a Spider-Man and also reprised his role in the sequels Spider-Man...