I have this code:
List<Visibility> ListVisibility = new List<Visibility>();
public class Visibility
{
public int ShpNo;
public int QtyShp;
public int NumPallets;
public string ETA;
}
Visibility item = ListVisibility.Find(VisibItem => VisibItem.ETA == e.Day.Date.ToShortDateString());
But the above Find is not returning any Item, when there is an item that matches that condition.
What could be wrong here?
ToShortDateString?DateTimeforETAinstead of a string, comparisons will be easier.