System.Xml.XmlConverter.ToTimeSpan C# (CSharp) Méthode

ToTimeSpan() static public méthode

static public ToTimeSpan ( byte buffer, int offset, int count ) : System.TimeSpan
buffer byte
offset int
count int
Résultat System.TimeSpan
        static public TimeSpan ToTimeSpan(byte[] buffer, int offset, int count)
        {
            return ToTimeSpan(ToString(buffer, offset, count));
        }

Same methods

XmlConverter::ToTimeSpan ( string value ) : System.TimeSpan

Usage Example

Exemple #1
0
 public TimeSpan ToTimeSpan()
 {
     if (_type == ValueHandleType.TimeSpan)
     {
         return(new TimeSpan(GetInt64()));
     }
     if (_type == ValueHandleType.UTF8)
     {
         return(XmlConverter.ToTimeSpan(_bufferReader.Buffer, _offset, _length));
     }
     return(XmlConverter.ToTimeSpan(GetString()));
 }
All Usage Examples Of System.Xml.XmlConverter::ToTimeSpan