What is the difference between icollection and list




















Provide an answer or move on to the next question. Let's work to help developers, not make them feel stupid. Related Questions. What is ICollection? How do I find differences between 2 lists. Speed testing array vs. Icollection as parameter of method. Layout: fixed fluid. Web02 2. Strip HTML. Encode HTML.

Paste as-is. Code block. Visual Studio Vs Visual Studio Understanding Matplotlib With Examples. Understanding Numpy With Examples. C Evolution. Everything That Every.

Understanding Pandas With Examples. At least they indicate that there are methods that allow doing these operations. Of course the correct implementation of these methods in the concrete class will ensure that everything works as expected. Obviously the interfaces do not allow you to perform any operation with them purely, you need the concrete type which in this case is List. Interfaces are used to generalize the type of a variable, parameter, or method return.

And this is important for harnessing code and making maintenance easier. Whenever possible, you should opt for the most general type possible through the interface. Note that all variables implement the List class. Learn more. Asked 10 years, 1 month ago.

Active 6 years, 5 months ago. Viewed 81k times. In any case, are there any downsides to what I have done, or should I change it? Improve this question. Anthony Pegram k 26 26 gold badges silver badges bronze badges.

Add a comment. Active Oldest Votes. Improve this answer. Anthony Pegram Anthony Pegram k 26 26 gold badges silver badges bronze badges. Yes, that's the chain. Thank you Some of the Ixxx features still escape my understanding! You have made sense, however, one last thing that is annoying me, if the other Ixx's inherit IEnumerable, how does it add to the IEnumerable if an Ienumerable is read only? If it is too complex, don't worry, when I have a bit of time, I will try to fire up reflector!



0コメント

  • 1000 / 1000