I am running a loop to iterate an object list and its property values.
When I try to access the ojects values I get an exception error because it is not ready (I think).
i.e.
foreach (oject obj in ObjectList)
{
//Using object property here that MAY raise exception if used too soon
obj.MyProperty;
}
I am having trouble finding a way to determine if the object is ready, but if I can simply retry it after a second or 2 it will work.
My question is, if an exception is raised when I access obj.MyProperty, how can I get the loop to re-try the same iteration?