Okay I have a series of objects based on a base class which are stored randomly in a Dictionary object. e.g.
class TypeA
{
public int SomeNumber {get; set;}
public void SomeFunction()
}
class TypeB : TypeA
{
public string SomeString {get; set;}
}
class TypeC : TypeA
{
public bool StuffReady()
}
Dictionary listOfClasses <long, TypeA>;
The Key value is a running count of the number of objects that have ever been placed into the dictionary. It does not match the current Dictionary count.
I wish to locate an object of TypeB where its SomeString == "123" say, and remove it. What would be the best way of doing this?