BExIS.IO.Transform.Validation.ValueCheck.OptionalCheck.Execute C# (CSharp) Method

Execute() public method

public Execute ( string value, int row ) : object
value string
row int
return object
        public object Execute(string value, int row)
        {
            if (String.IsNullOrEmpty(value) && this.optional == false)
            {
                // create Error Object
                Error e = new Error(ErrorType.Value, "Is empty and not optional ", new object[] { name, "empty", row, dataType });
                return e;
            }
            return value;
        }