Tuesday, April 3, 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

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...