﻿// Decompiled with JetBrains decompiler
// Type: Mono.Xml.Schema.XdtDayTimeDuration
// Assembly: System.Xml, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
// MVID: B96316B8-9B8D-4ED8-8305-8C4F91B6775A
// Assembly location: C:\Users\CGA Computer\Desktop\LEGO Universe Stuff\LOCO Server\Unity Web Player Extractor\Saved Files\LOCO Server.unity3d_unpacked\System.Xml.dll

using System;
using System.Xml;
using System.Xml.Schema;

namespace Mono.Xml.Schema
{
  internal class XdtDayTimeDuration : XsdDuration
  {
    public override XmlTypeCode TypeCode
    {
      get
      {
        return XmlTypeCode.DayTimeDuration;
      }
    }

    public override Type ValueType
    {
      get
      {
        return typeof (TimeSpan);
      }
    }

    internal XdtDayTimeDuration()
    {
    }

    public override object ParseValue(string s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr)
    {
      return (object) this.ParseValueType(s, nameTable, nsmgr);
    }

    internal override System.ValueType ParseValueType(string s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr)
    {
      return (System.ValueType) XmlConvert.ToTimeSpan(this.Normalize(s));
    }
  }
}
