ToDateTime() static public method

static public ToDateTime ( System.Int64 value ) : System.DateTime
value System.Int64
return System.DateTime
Exemplo n.º 1
0
 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()));
 }
Exemplo n.º 2
0
 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()));
 }