I have rather a complex datastructure. The simple version looks like this:
public class Field
{
List<FieldRow> fieldRow;
//I want to write a delete that iterates and deletes given the key
//(Use Linq?)
public void DeleteByKey(int key)
{
//Do Remove
}
}
public class FieldRow
{
public int key;
}
Any help in implementing Delete is appreciated.