﻿// Decompiled with JetBrains decompiler
// Type: Mono.Xml.Schema.XsdNMToken
// 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 XsdNMToken : XsdToken
  {
    public override XmlTokenizedType TokenizedType
    {
      get
      {
        return XmlTokenizedType.NMTOKEN;
      }
    }

    public override XmlTypeCode TypeCode
    {
      get
      {
        return XmlTypeCode.NmToken;
      }
    }

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

    internal XsdNMToken()
    {
    }

    public override object ParseValue(string s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr)
    {
      if (!XmlChar.IsNmToken(s))
        throw new ArgumentException("'" + s + "' is an invalid NMTOKEN.");
      return (object) s;
    }

    internal override System.ValueType ParseValueType(string s, XmlNameTable nameTable, IXmlNamespaceResolver nsmgr)
    {
      return (System.ValueType) new StringValueType(this.ParseValue(s, nameTable, nsmgr) as string);
    }
  }
}
