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); }
public string ToString(string format, IFormatProvider formatProvider) { return(ValueLong.ToString(format, formatProvider)); }
public override string ToString() { return(ValueLong.ToString()); }