public DateTime ToDateTime() { if (_type == ValueHandleType.DateTime) { return(XmlConverter.ToDateTime(GetInt64())); } if (_type == ValueHandleType.UTF8) { return(XmlConverter.ToDateTime(_bufferReader.Buffer, _offset, _length)); } return(XmlConverter.ToDateTime(GetString())); }
public DateTime ToDateTime() { if (this.type == ValueHandleType.DateTime) { return(XmlConverter.ToDateTime(this.GetInt64())); } if (this.type == ValueHandleType.UTF8) { return(XmlConverter.ToDateTime(this.bufferReader.Buffer, this.offset, this.length)); } return(XmlConverter.ToDateTime(this.GetString())); }