class parent
public string a;
public string b;
// child fields
public string c;
public string d;
public parent(string a, string b)
{
this.a = a;
this.b = b;
}
class child1 : parent
{
public child1(string a, string b, string c) :base(string a, string b)
}
class child2 : parent
{
public child2(string a, string b, string d) :base(string a, string b)
}
IList<parent> parent_list = new List<parent>();
parent_list.Add(new child1("243", "ewfwe", "fewf"));
parent_list.Add(new child2("456", "fewf", "efew"));
parent_list.Add(new child1("123", "efe", "ewfew"));
parent_list.Add(new child2("768", "fewf", "ewf"));
var foo = 123
I want to delete all data for an object which has 123 as their field a. I cant seem to find the correct way to execute this. is it possible?