Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/System.XML/System.Xml/XmlWhitespace.cs')
-rw-r--r--mcs/class/System.XML/System.Xml/XmlWhitespace.cs66
1 files changed, 0 insertions, 66 deletions
diff --git a/mcs/class/System.XML/System.Xml/XmlWhitespace.cs b/mcs/class/System.XML/System.Xml/XmlWhitespace.cs
deleted file mode 100644
index 62abbb82413..00000000000
--- a/mcs/class/System.XML/System.Xml/XmlWhitespace.cs
+++ /dev/null
@@ -1,66 +0,0 @@
-//
-// System.Xml.XmlWhitespace.cs
-//
-// Author:
-// Duncan Mak (duncan@ximian.com)
-//
-// (C) Ximian, Inc. http://www.ximian.com
-//
-
-using System;
-
-namespace System.Xml
-{
- public class XmlWhitespace : XmlCharacterData
- {
- // Constructor
- protected internal XmlWhitespace (string strData, XmlDocument doc)
- : base (strData, doc)
- {
- }
-
- // Properties
- public override string LocalName {
- get { return "#whitespace"; }
- }
-
- public override string Name {
- get { return "#whitespace"; }
- }
-
- public override XmlNodeType NodeType {
- get { return XmlNodeType.Whitespace; }
- }
-
- public override string Value {
- get { return Data; }
- [MonoTODO]
- set {
- if (IsValidWhitespaceChar (value) == false)
- throw new ArgumentException ("Invalid whitespace characters.");
- }
- }
-
- // Methods
- public override XmlNode CloneNode (bool deep)
- {
- // always return the data value
- return new XmlWhitespace (Data, OwnerDocument);
- }
-
- public override void WriteContentTo (XmlWriter w) {}
-
- public override void WriteTo (XmlWriter w)
- {
- w.WriteWhitespace (Data);
- }
-
- private bool IsValidWhitespaceChar (string text)
- {
- foreach (char c in text)
- if ((c != ' ') && (c != '\r') && (c != '\n') && (c != '\t'))
- return false;
- return true;
- }
- }
-}