public object CheckValue(string value, int row, ref List<Error> errors)
{
object temp = value;
if (this.NullOrOptionalCheck != null)
{
temp = this.NullOrOptionalCheck.Execute(value, row);
if (temp is Error)
{
errors.Add((Error)temp);
}
else
{
if (this.DataTypeCheck != null)
{
temp = this.DataTypeCheck.Execute(value, row);
}
if (temp is Error) errors.Add((Error)temp);
else ConvertedValue = temp;
}
}
return temp;
}