This is driving me nuts. Perhaps I'm missing something obvious?
The fieldInfo.FieldType is correct (DateTime), and the value I'm applying is also a DateTime.
for(int i=0; i<objectArray.Length; i++)
{
FieldInfo destinationField = GetFieldInfo(i);
object destinationValue = objectArray[i];
destinationField.SetValue(this, destinationValue);
}
Edit: even if I set destinationValue to a literal DateTime (DateTime.Now), I still get the exception!