public void SetProperty(object Instance, string Property, object Value)
{
LastException = null;
if (Value is DBNull)
Value = null;
Value = FixupParameter(Value);
try
{
if (Property.Contains(".") || Property.Contains("["))
ReflectionUtils.SetPropertyEx(Instance, Property, Value);
else
ReflectionUtils.SetPropertyCom(Instance, Property, Value);
}
catch (Exception ex)
{
SetError(ex.GetBaseException(), true);
throw ex.GetBaseException();
}
}