ToDateTime() статический публичный Метод

static public ToDateTime ( System.Int64 value ) : System.DateTime
value System.Int64
Результат System.DateTime
Пример #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()));
 }
Пример #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()));
 }