I have a List<Fill> items
Here is the Fill
class :
public class Fill
{
public string arret { get; set;}
public string ligneSens { get; set;}
}
How can I remove an item from this List using the string value arret
and ligneSens
?
Example :
void OnDelete(object sender, EventArgs e, string arretName, string ligneSensName)
{
var aFill = new Fill
{
arret = arretName,
ligneSens = ligneSensName
};
items.Remove(aFill); //<--- this doesn't work
}
Sorry for the title of the post I didn't know how to ask that.