Top "Icollection" questions

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

How to hide some members of an interface

I would like to create a custom collection that implements ICollection. But I would like not to expose some memebers …

c# collections icollection
Linq Conversion From ICollection<T> to List<T>

I am using Code First Entity Framework. I am using the following simple classes: public class Users { public ICollection<…

c# linq entity-framework linq-to-entities icollection
Find an item inside a List<T> by providing a sample object instance

Why is there a List<T>.Contains(T) method but no List<T>.Find(T) method? …

c# list icollection iequatable
Does an ICollection<T> have an order?

Following the rules that a public APIs should never return a list, i'm blinding converting all code that returned lists, …

c# collections icollection
Cannot apply indexing with [] to an expression of type 'object' (even though the type is 'dynamic')

I have an ExpandoObject which is created like so: public ExpandoObject Get() { var expando = new ExpandoObject(); var expandoDic = (IDictionary<…

c# dynamic ienumerable icollection expandoobject
ICollection to String in a good format in C#

I have a List: List<int> list = new List<int> {1, 2, 3, 4, 5}; If want to get string presentation …

c# .net string icollection
Using LINQ with classes implementing non-generic ICollection

I wanted to run a LINQ query against a MatchCollection object but found this wasn't possible as it doesn't implement …

.net linq generics linq-to-objects icollection
converting linq query to icollection

I need to take the results of a query: var query = from m in db.SoilSamplingSubJobs where m.order_id == …

list icollection
T in class? AddRange ICollection?

I try to do static class, add to icollection but i got some issues i cant seem to overcome. that …

c# .net icollection
C# Converting object to List<object>

I need to convert a list of string to a list of object, but the thing is I am receiving …

c# list ienumerable icollection