public CheckValue ( string value, int row, List |
||
value | string | |
row | int | |
errors | List |
|
return | object |
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;
}