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:
authorMiguel de Icaza <miguel@gnome.org>2009-08-01 20:31:08 +0400
committerMiguel de Icaza <miguel@gnome.org>2009-08-01 20:31:08 +0400
commit3fc2ac11bc8766bfc62c0c7a9840bb58c2b2d005 (patch)
tree3d388aeacb478fa1a972d5b0aa1189fb0b9fbe43 /mcs/class/System.XML/System.Xml.Schema
parenta155696f617ae33b4234e587855799d29b2abdce (diff)
2009-08-01 Miguel de Icaza <miguel@novell.com>
* Various changes to support the non-XAP XmlSchema resolution on the Moonlight build. Major missing feature: WebRequest resolution. svn path=/trunk/mcs/; revision=139246
Diffstat (limited to 'mcs/class/System.XML/System.Xml.Schema')
-rw-r--r--mcs/class/System.XML/System.Xml.Schema/XmlSchemaException.cs4
-rw-r--r--mcs/class/System.XML/System.Xml.Schema/XmlSchemaSet_2_1.cs2
2 files changed, 5 insertions, 1 deletions
diff --git a/mcs/class/System.XML/System.Xml.Schema/XmlSchemaException.cs b/mcs/class/System.XML/System.Xml.Schema/XmlSchemaException.cs
index 22629b5c6dc..aa902796b82 100644
--- a/mcs/class/System.XML/System.Xml.Schema/XmlSchemaException.cs
+++ b/mcs/class/System.XML/System.Xml.Schema/XmlSchemaException.cs
@@ -113,10 +113,12 @@ namespace System.Xml.Schema
innerException)
{
hasLineInfo = true;
+#if !MONOTOUCH
this.lineNumber = sourceObject.LineNumber;
this.linePosition = sourceObject.LinePosition;
this.sourceObj = sourceObject;
this.sourceUri = sourceObject.SourceUri;
+#endif
}
public XmlSchemaException(string message, Exception innerException)
@@ -161,9 +163,11 @@ namespace System.Xml.Schema
(sourceUri != null && sourceUri != "") ? "URI: " + sourceUri + " ." : "",
lineNumber,
linePosition);
+#if !MONOTOUCH
if (sourceObj != null)
msg += String.Format (CultureInfo.InvariantCulture, " Related schema item SourceUri: {0}, Line {1}, Position {2}.",
sourceObj.SourceUri, sourceObj.LineNumber, sourceObj.LinePosition);
+#endif
return msg;
}
diff --git a/mcs/class/System.XML/System.Xml.Schema/XmlSchemaSet_2_1.cs b/mcs/class/System.XML/System.Xml.Schema/XmlSchemaSet_2_1.cs
index e3e01a219b2..a0e804e2ab7 100644
--- a/mcs/class/System.XML/System.Xml.Schema/XmlSchemaSet_2_1.cs
+++ b/mcs/class/System.XML/System.Xml.Schema/XmlSchemaSet_2_1.cs
@@ -32,7 +32,7 @@ namespace System.Xml.Schema {
public class XmlSchemaSet {
- private XmlSchemaSet ()
+ internal XmlSchemaSet ()
{
}
}