Exemplo n.º 1
0
        public override IdpeMessage Parse(bool onlyConstraints)
        {
            try
            {
                this._ParseResult = new IdpeMessage(IdpeMessageCodes.IDPE_SUCCESS);
                if (base.Value.ToUpper() != "NULL")
                {
                    if (ValueLong == null)
                    {
                        TryExtractingSpecificType();
                        if (ValueLong == null)  //still null, then throw
                        {
                            this._ParseResult         = new IdpeMessage(IdpeMessageCodes.IDPE_BIGINT_TYPE_DATA_VALIDATION_FAILED);
                            this._ParseResult.Message = string.Format(this._ParseResult.Message, PrintRowColPosition(), Type, base.Value);
                            return(this._ParseResult);
                        }
                    }

                    Value = ValueLong.ToString();
                    CheckConstraints();
                }
            }
            catch (Exception ex)
            {
                ExtensionMethods.TraceError(ex.ToString());
                this._ParseResult         = new IdpeMessage(IdpeMessageCodes.IDPE_BIGINT_TYPE_DATA_VALIDATION_FAILED);
                this._ParseResult.Message = string.Format(this._ParseResult.Message, PrintRowColPosition(), Type, base.Value);
            }
            _IsParsed = true;
            return(this._ParseResult);
        }
Exemplo n.º 2
0
 public int CompareTo(EmulatedInteger other)
 {
     return(ValueLong.CompareTo(other.ValueLong));
 }
Exemplo n.º 3
0
 public string ToString(string format, IFormatProvider formatProvider)
 {
     return(ValueLong.ToString(format, formatProvider));
 }
Exemplo n.º 4
0
 public int CompareTo(object obj)
 {
     return(ValueLong.CompareTo(obj));
 }
Exemplo n.º 5
0
 public override string ToString()
 {
     return(ValueLong.ToString());
 }