Top "Icollection" questions

The ICollection interface is the base interface for classes in the System.

Using a list as a data source for DataGridView

I've extracted the setting names and their respective values out of a configuration file into an ordered dictionary. The dictionary …

c# datagridview datasource icollection ordereddictionary
Why use ICollection and not IEnumerable or List<T> on many-many/one-many relationships?

I see this a lot in tutorials, with navigation properties as ICollection<T>. Is this a mandatory requirement …

c# entity-framework code-first icollection
ICollection - Get single value

What is the best way to get a value from a ICollection? We know the Collection is empty apart from …

c# .net icollection
ICollection<T> Vs List<T> in Entity Framework

I only watched a few webcasts before I went head first in to designing a few Entity Framework applications. I …

c# list ef-code-first ienumerable icollection
Add to an ICollection

I am currently writing a C# project and I need to do unit testing for the project. For one of …

c# icollection
Why ICollection index does not work when instantiated?

When we declare a parameter as ICollection and instantiated the object as List, why we can't retrive the indexes? i.…

c# list indexing icollection
how to set an empty iCollection c#

I have three collections: private ICollection<FPTAssetClassAsset> wrassets; private ICollection<FPTFundAsset> wrfunds; private ICollection<FPTManagedStrategyAsset&…

c# icollection
Custom Collection using IEnumerable vs ICollection vs IList

I need to design my own custom GenericCollection class. Now i have plenty of options to derive it using IEnumerable, …

c# ienumerable ilist icollection custom-collection
How to Clear() all elements from Entity Framework ICollection?

I have problems removing all elements from a collection in entity framework using Clear() Consider the often used example with …

c# entity-framework icollection
Difference between IEnumerable and IEnumerable<T>?

What is the difference between IEnumerable and IEnumerable<T>? I've seen many framework classes implementing both these interfaces, …

c# ienumerable generics ilist icollection