Top Tweets for #ICollection
With params collections in .NET 9, you can write params IEnumerable<T> (or IList<T>, ICollection<T>, etc.) instead of params T[], so you avoid extra array allocations, accept any collection directly, and keep code clean! π
![SerkutYILDIRIM's tweet photo. With params collections in .NET 9, you can write params IEnumerable<T> (or IList<T>, ICollection<T>, etc.) instead of params T[], so you avoid extra array allocations, accept any collection directly, and keep code clean! π https://t.co/W6mvCqrzT6](https://pbs.twimg.com/media/GzLoTPOW8AAgYAg.jpg)
the Link to the ICollection π
https://t.co/VaKxZuBWzo
Hey DotNet developers! @AntonMartyniuk has curated an ICollection of over 650 top-notch resources for learning DotNet in 2025 - add it to your IList of bookmarks now!

Dive into the world of #CSharp collections with this article on IEnumerable<T> vs ICollection<T>, and learn WHY you should care!
This looks like a trivial topic, but there are situations when knowing the difference can be crucial for your project
π
https://t.co/b6hSkz4oW6
Dive into the world of #CSharp collections with this article on IEnumerable<T> vs ICollection<T>, and learn WHY you should care!
It's easy to forget the fundamentals, but there are situations when knowing the difference can be crucial for your project
π
https://t.co/b6hSkz4oW6
@hoagieland @vivainio ... and you can check for an interface like ICollection to have Count available... from the top of my head, .NET optimized a few places for this use case...
hi all, please explain the differences among #IEnumerable vs #ICollection vs #IQueryable vs #IList in #csharp
@ddpereira @Abt_Benjamin @BelloneDavide @sharslammer @smokiejim It is not enumerating them because Linq extension methods are full of special cases (ie: if (x is ICollection)), but it is still slower as it needs cast, check, etc instead of going straight to field.
@mjovanovictech @BelloneDavide β οΈ ICollection != Collection
ICollection is narrower than IList
(IList inherits ICollection)
Collection implements the IList interface and wraps an IList implementation (the one you provide or List by default)
List implements IList and wraps an Array
@BelloneDavide Returning ICollection from a method probably doesn't make much sense if we are talking about returning the normal .NET library types, lists and sets and etc. I personally have never written code that returns ICollection.
@BelloneDavide Similar to what another said - I would implement ICollection<T> if I were writing a custom data structure that could be enumerated, stored its count, could be readonly, could be added to, etc. but was not ordered or indexable.
@lettucemode Yup.
Let me rewrite the question:
why would anyone want to use ICollection<T> instead of IList<T> (or IEnumerable<T>) as a return type of a method?
In particular, in systems under your control (such that you know how to access and use the returned data)
One of my pet peeves is that generic collection types such as ICollection<T>, List<T>, etc are in a different namespace to the non-generic collection types.
@SabitK @brian_reiter Important to realize: It's only an interface which makes enumeration possible. But it's not lazy by default, this depends on the backing implementation. Everything that implements ICollection also does IEnumerable, like List, and the ICollection impl in the CLR are not lazy AFAIK
Calling .NET Devs!
I've been trying to get .AddRange() methods added to ICollection since *August 2016*.
In 2019 we almost made it into .NET 3, but it was pulled at the 1 yard line for breaking WPF.
We have a chance with .NET 7, but we need your help.
https://t.co/0vyNwq2TrC
Flirt and tease with this lacy garter and matching panty by iCollection Lingerie! #valentinelingerie #giftideas #icollection #racybedroomsets #eyelashlace #garterstraps #newarrivals #bedroomattire #romanticgifts https://t.co/l3eJcKnRXM

Flirt and tease with this lacy garter and matching panty by iCollection Lingerie! #valentinelingerie #giftideas #icollection #racybedroomsets #eyelashlace #garterstraps #newarrivals #bedroomattire #romanticgifts https://t.co/Oyyb7G84Jv

Last Seen Hashtags on Sotwe
momson()* virgin() filter:native_video
Seen from Germany
EmmanuelSTROSSER
Seen from United States
lesbian
tittytuesday
Seen from Qatar
turbanli #yenge
Seen from Turkey
anxiouspandaaaa
ArsenalVsManUnited
Seen from United States
Ω
Ω
ΨΩΩΩ
Seen from United Kingdom
Ψ¬Ω_Ω
ΩΨ¬ΩΩΩ
Seen from Singapore
sloppy blowjob
Seen from United States
Trends for you
Most Popular Users

Elon Musk 
@elonmusk
239.3M followers

Barack Obama 
@barackobama
118.5M followers

Cristiano Ronaldo 
@cristiano
114.3M followers

Donald J. Trump 
@realdonaldtrump
111.7M followers

Narendra Modi 
@narendramodi
106.9M followers

Rihanna 
@rihanna
98.6M followers

NASA 
@nasa
92M followers

Justin Bieber 
@justinbieber
91.7M followers

KATY PERRY 
@katyperry
89.9M followers

Taylor Swift 
@taylorswift13
83.9M followers

Lady Gaga 
@ladygaga
75.4M followers

Virat Kohli 
@imvkohli
73.2M followers

Kim Kardashian 
@kimkardashian
70.8M followers

YouTube 
@youtube
68.6M followers

Neymar Jr 
@neymarjr
66.3M followers

Bill Gates 
@billgates
65.1M followers

Selena Gomez 
@selenagomez
63M followers

The Ellen Show
@theellenshow
62.1M followers

CNN 
@cnn
61.6M followers

X 
@x
60.6M followers












