¡@

Home 

c# Programming Glossary: iset

Why have HashSet but not Set in C#?

http://stackoverflow.com/questions/1023697/why-have-hashset-but-not-set-in-c

in a future version Or why not at least interface ISet Answer Learned thanks to everyone who answered below ICollection.. ICollection implements a lot of what you'd expect from ISet . From my point of view though ICollection implements IEnumerable.. MSDN page which describes the upcoming .NET 4.0 interface ISet which behaves pretty much as I thought it should and is implemented..

How to make generic class that contains a Set of only its own type or subtypes as Children?

http://stackoverflow.com/questions/15590540/how-to-make-generic-class-that-contains-a-set-of-only-its-own-type-or-subtypes-a

Reptile Animal class AnimalWrapper T where T Animal public ISet AnimalWrapper T Children get set class Program public static.. ability to have a class whose Children objects are in an ISet of the same generic type. Thus if I also had var child new AnimalWrapper.. it doesn't work. Ultimately it'd be nice to be able to say ISet AnimalWrapper Animal baz new HashSet AnimalWrapper Animal then..

How to convert linq results to HashSet or HashedSet

http://stackoverflow.com/questions/3471899/how-to-convert-linq-results-to-hashset-or-hashedset

or HashedSet I have a property on a class that is an ISet. I'm trying to get the results of a linq query into that property.. how to do so. Basically looking for the last part of this ISet T foo new HashedSet T foo from x in bar.Items select x .SOMETHING.. for us. Now you could choose to name it ToSet and return ISet T but I'd stick with ToHashSet and the concrete type. This is..

Using Statement with Generics: using ISet<> = System.Collections.Generic.ISet<>

http://stackoverflow.com/questions/3720222/using-statement-with-generics-using-iset-system-collections-generic-iset

Statement with Generics using ISet System.Collections.Generic.ISet Since I am using two different.. with Generics using ISet System.Collections.Generic.ISet Since I am using two different generic collection namespaces.. types. However the following lines do not work using ISet System.Collections.Generic.ISet using ISet System.Collections.Generic.ISet..

How to implement ConcurrentHashSet in .Net

http://stackoverflow.com/questions/4306936/how-to-implement-concurrenthashset-in-net

concurrency public class ConcurrentHashSet TElement ISet TElement private readonly ConcurrentDictionary TElement object..