mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
* XmlImplementation.cs : HasFeature() returns true when strVersion is null. svn path=/trunk/mcs/; revision=24329
45 lines
806 B
C#
45 lines
806 B
C#
//
|
|
// System.Xml.XmlImplementation.cs
|
|
//
|
|
// Author: Duncan Mak ([email protected])
|
|
//
|
|
// (C) Ximian, Inc.
|
|
//
|
|
|
|
namespace System.Xml
|
|
{
|
|
public class XmlImplementation
|
|
{
|
|
#region Constructor
|
|
public XmlImplementation ()
|
|
{
|
|
InternalNameTable = new NameTable ();
|
|
}
|
|
#endregion
|
|
|
|
#region Public Methods
|
|
public virtual XmlDocument CreateDocument ()
|
|
{
|
|
return new XmlDocument (this);
|
|
}
|
|
|
|
public bool HasFeature (string strFeature, string strVersion)
|
|
{
|
|
if (String.Compare (strFeature, "xml", true) == 0) { // not case-sensitive
|
|
switch (strVersion) {
|
|
case "1.0":
|
|
case "2.0":
|
|
case null:
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
#endregion
|
|
|
|
#region Internals
|
|
internal XmlNameTable InternalNameTable;
|
|
#endregion
|
|
}
|
|
}
|