mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
* XmlImplementation.cs (HasFeature): Fixed a typo. Thanks for Fabricio Barros Cabral (fx) on #mono for spotting it. This is his first patch to Mono! ;-) svn path=/trunk/mcs/; revision=9161
44 lines
877 B
C#
44 lines
877 B
C#
//
|
|
// System.Xml.XmlImplementation.cs
|
|
//
|
|
// Author: Duncan Mak ([email protected])
|
|
//
|
|
// (C) Ximian, Inc.
|
|
//
|
|
|
|
namespace System.Xml
|
|
{
|
|
public class XmlImplementation
|
|
{
|
|
#region Constructor
|
|
public XmlImplementation ()
|
|
: base ()
|
|
{
|
|
// The following keys are default of MS .NET Framework
|
|
NameTable nt = new NameTable();
|
|
internalNameTable = nt;
|
|
}
|
|
#endregion
|
|
|
|
#region Public Methods
|
|
public virtual XmlDocument CreateDocument ()
|
|
{
|
|
return new XmlDocument (this);
|
|
}
|
|
|
|
public bool HasFeature (string strFeature, string strVersion)
|
|
{
|
|
if ((strFeature == "XML") || (strFeature == "xml") // not case-sensitive
|
|
&& (strVersion == "1.0") || (strVersion == "2.0"))
|
|
return true;
|
|
else
|
|
return false;
|
|
}
|
|
#endregion
|
|
|
|
#region Internals
|
|
internal XmlNameTable internalNameTable;
|
|
#endregion
|
|
}
|
|
}
|