private string GetStringValue() { switch (_dataType) { case DataType.String: return(m_Data); case DataType.Long: return(AsLong.ToString()); case DataType.ULong: return(AsULong.ToString()); case DataType.Int: return(AsInt.ToString()); case DataType.UInt: return(AsUInt.ToString()); case DataType.Double: return(AsDouble.ToString()); case DataType.Bool: return(AsBool ? "true" : "false"); } return(string.Empty); }
public override string ToString() { if (IsFloatingPt) { return(AsFloatingPt.ToString()); } return(AsInt.ToString()); }
public override string ToString() { string val = m_Data != null ? m_Data : Value; switch (type) { case BasicType.BOOL: return(AsBool ? "true" : "false"); case BasicType.INT: return(AsInt.ToString()); case BasicType.DOUBLE: return(AsDouble.ToString()); case BasicType.FLOAT: return(AsFloat.ToString()); case BasicType.STRING: default: return("\"" + Escape(val) + "\""); } }
public override string ToString() { return(AsInt.ToString()); }