Need a .NET Dictionary<string,object> with just a little more functionality.
- by Ronnie Overby
I need a dictionary but I also need to store a boolean value about the object in the dictionary. What's the best way for this.
Something like
Dictonary<string,object,bool>
would be ideal, but doesn't exist.
My first idea was:
public class SomeObject
{
public object Value { get; set; }
public bool Flag { get; set; }
}
// and…