I have a model Auto in MVC application that has properties such as
public string Id { get; set; }
public bool IsOOS{ get; set; }
public string Make { get; set; }
public string Model { get; set; }
[XmlElement(IsNullable = true)]
public DateTime? RegisteredDate { get; set; }
and a class that has this ...
var a = new Auto(){
Id = someIDcomingfromServer,
IsOOS = someOOScomingFromServer,
...
}
what I want to be able to do is... to loop through those and see if any of the properties are now null.
how can I loop through and see if any of those properties (Id, IsOOS etc) contain null?
Thanks