mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
* XmlTextWriterOpenElement.cs : Changed to receive prefix and localName in .ctor(). * XmlTextWriter.cs : Changed to use above XmlTextWriterOpenElement. Changed xmlns adding scheme. In detail, 1) WriteStartElement does not add Namespaces immediately, but adds at AddMissingElementXmlns so that we don't have to have extra check than namespaceManager's LookupPrefix(). 2) Removed writtenAttributes for performance reason since it is no more required. svn path=/trunk/mcs/; revision=18063
66 lines
1.0 KiB
C#
66 lines
1.0 KiB
C#
//
|
|
// System.Xml.XmlTextWriterOpenElement
|
|
//
|
|
// Author:
|
|
// Kral Ferch <[email protected]>
|
|
//
|
|
// (C) 2002 Kral Ferch
|
|
//
|
|
//
|
|
// Scope support for XmlLang and XmlSpace in XmlTextWriter.
|
|
//
|
|
using System;
|
|
|
|
namespace System.Xml
|
|
{
|
|
internal class XmlTextWriterOpenElement
|
|
{
|
|
#region Fields
|
|
|
|
string prefix;
|
|
string localName;
|
|
string xmlLang;
|
|
XmlSpace xmlSpace;
|
|
bool indentingOverriden = false;
|
|
|
|
#endregion
|
|
|
|
#region Constructors
|
|
|
|
public XmlTextWriterOpenElement (string prefix, string localName)
|
|
{
|
|
this.prefix = prefix;
|
|
this.localName = localName;
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Properties
|
|
|
|
public string LocalName {
|
|
get { return localName; }
|
|
}
|
|
|
|
public string Prefix {
|
|
get { return prefix; }
|
|
}
|
|
|
|
public bool IndentingOverriden {
|
|
get { return indentingOverriden; }
|
|
set { indentingOverriden = value; }
|
|
}
|
|
|
|
public string XmlLang {
|
|
get { return xmlLang; }
|
|
set { xmlLang = value; }
|
|
}
|
|
|
|
public XmlSpace XmlSpace {
|
|
get { return xmlSpace; }
|
|
set { xmlSpace = value; }
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|