Validation on a List of objects

Dec 14, 2015 at 3:30 PM
Hello,
Is there a proper way to use the validator on a list of objects. For example:
public class XY
{
public DateTime StartDate{get;set;}
public DateTime EndDate {get;set;}
public decimal Value{get;set;}
}

public class VM:ViewModelBase
{
public DateTime StartDate{get;set;}
public ObservableCollection<XY> DataList{get;set;}


private void ValidationRules()
{
//DataList.ToList().All(p=>StartDate.Date<p.StartDate.Date)
}
}