diff options
author | Geoff Norton <grompf@sublimeintervention.com> | 2009-03-26 06:10:02 +0300 |
---|---|---|
committer | Geoff Norton <grompf@sublimeintervention.com> | 2009-03-26 06:10:02 +0300 |
commit | a6e5f0c04efe4497f708784589f8514370e3c6f1 (patch) | |
tree | 34cd80d52f392ec353a6879fec8c7ca4530abdc8 /mcs/class/System.XML/System.Xml | |
parent | a2c3e1f4061184d86e79e00118a84bf25ec55132 (diff) |
fix the 1.1 build
svn path=/trunk/mcs/; revision=130269
Diffstat (limited to 'mcs/class/System.XML/System.Xml')
-rw-r--r-- | mcs/class/System.XML/System.Xml/XmlTextReader.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mcs/class/System.XML/System.Xml/XmlTextReader.cs b/mcs/class/System.XML/System.Xml/XmlTextReader.cs index de927664636..e2d6211f520 100644 --- a/mcs/class/System.XML/System.Xml/XmlTextReader.cs +++ b/mcs/class/System.XML/System.Xml/XmlTextReader.cs @@ -1056,7 +1056,11 @@ namespace System.Xml if (url != null && url.Length > 0) { Uri uri = null; try { +#if NET_2_0 uri = new Uri (url, UriKind.RelativeOrAbsolute); +#else + uri = new Uri (url); +#endif } catch (Exception) { string path = Path.GetFullPath ("./a"); uri = new Uri (new Uri (path), url); |