Open flamaniac opened 3 years ago
Luck of many methods or extansions for the IList i forcing to pass list implementation everywhere. Thats why IList interface is not flexible.
List allApplicableVariants = new List(); IEnumerable filteredVariants = ...; allApplicableVariants .AddRange(filteredVariants)
is posibble but this is not:
IList allApplicableVariants = new List(); IEnumerable filteredVariants = ...; allApplicableVariants .AddRange(filteredVariants); // ;(
Suggestions for new APIs belong to the dotnet/runtime repo, so you should close the issue here and reopen it there.
Luck of many methods or extansions for the IList i forcing to pass list implementation everywhere. Thats why IList interface is not flexible.
List allApplicableVariants = new List();
IEnumerable filteredVariants = ...;
allApplicableVariants .AddRange(filteredVariants)
is posibble but this is not:
IList allApplicableVariants = new List();
IEnumerable filteredVariants = ...;
allApplicableVariants .AddRange(filteredVariants); // ;(