~ubuntu-branches/ubuntu/lucid/mono/lucid

« back to all changes in this revision

Viewing changes to mcs/class/System.Xml.Linq/System.Xml.Linq/XElement.cs

  • Committer: Bazaar Package Importer
  • Author(s): Mirco Bauer
  • Date: 2009-07-30 19:35:10 UTC
  • mto: (5.2.2 squeeze)
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: james.westby@ubuntu.com-20090730193510-cdttfvqokq2kmdvh
Tags: upstream-2.4.2.3+dfsg
ImportĀ upstreamĀ versionĀ 2.4.2.3+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
389
389
 
390
390
                public static XElement Load (XmlReader reader, LoadOptions options)
391
391
                {
392
 
                        XmlReaderSettings s = reader.Settings.Clone ();
 
392
                        XmlReaderSettings s = reader.Settings != null ? reader.Settings.Clone () : new XmlReaderSettings ();
393
393
                        s.ProhibitDtd = false;
394
394
                        s.IgnoreWhitespace = (options & LoadOptions.PreserveWhitespace) == 0;
395
395
                        using (XmlReader r = XmlReader.Create (reader, s)) {