I'm having some issues refactoring and ordering a list. I have a class called DomainCollection which inherits from KeyedCollection. I created and ...
I'm having some issues refactoring and ordering a list. I have a class called DomainCollection which inherits from KeyedCollection. I created and ...
I noticed that Sets are being classified as keyed collections, and according the definition is a: collections of data which are ordered by a key ...
Here is my issue: It doesn't seem like I can use the .Dictionary property or the GetKeyForItem method. Is there a using statement that I'm missing or ...
I need to serialize/deserialize a KeyedCollection with protobuf-net, can I just serialize a list? If so, what is the most efficient way to convert-ba ...
I started from this article to obtain MutableKey collections for different types. I want to have an abstract KeyedCollection base class for all my co ...
I recently started working with vb.net coming from vba. For my planned application I wanted to create a KeyedCollection which stores another keyedcol ...
I have a custom Dictionary<T> that has a backing collection of KeyedCollection. While trying to optimize performance issues that I'm seeing whil ...
would anyone clarify this for me pls. return (HashSet) this[typeof(T)]; with example if possible. thank you ...
I'm fairly new to C# collectons. I do not know how to solve this issue. This line of code Gives the error This is the code I have. I am not sur ...
I've been using SortedList(key,value) a lot lately, but I would like to know how it is different than KeyedCollection(key, value), except for the obvi ...
I think this is a common problem we run into. Say I have this class. I can implement a KeyedCollection like this: The case here is that the def ...
I'm fairly new to C# so forgive me if this is a stupid question. I'm experiencing an error but I do not know how to resolve it. I'm using Visual Studi ...
First let me explain why I'm using a KeyedCollection. I'm building a DLL and I have a list of items that I need to add to a collection and have them s ...
Long story short, I needed a set of objects with dictionary-like functionality that can be serialized in order to save user data. The original diction ...
I want to create a method that would iterate through a keyed collection. I want to make sure that my method support iteration of any collection that e ...
Is there any equivalent to KeyedCollection in Python, i.e. a set where the elements have (or dynamically generate) their own keys? i.e. the goal here ...
I am looking for a way that is as efficient as the Keys property (of type KeyCollection) of a generic dictionary. Using a Linq select statement would ...
Basically I've got a KeyedCollection<string, CustomNode>, and I want to be able to sort the collection by the key (or preferably with a custom c ...
I want to use a KeyedCollection to store a class against a string key value. I have the following code: Can anyone tell me what I’m doing wrong her ...
I want to implement a keyed observable collection in Silverlight, that will store unique objects based on a property called Name. One way of doing it ...