[Mono-bugs] [Bug 524084] NRE during xml deserialization

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jul 22 01:45:52 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=524084

User aenomoto at novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=524084#c2





--- Comment #2 from Atsushi Enomoto <aenomoto at novell.com>  2009-07-21 23:45:49 MDT ---
This seems to be an issue in XLinq. The example below works fine:

using System;
using System.IO;
using System.Runtime.Serialization;
using System.Xml;

[DataContract(Namespace="http://example.com/schemas/asx")]
public class Dummy
{
}

class T
{
        static void Main ()
        {
                string xml = @"<Dummy xmlns='http://example.com/schemas/asx'
/>";
                using (var reader = XmlReader.Create (new StringReader (xml)))
                        new
DataContractSerializer(typeof(Dummy)).ReadObject(reader);
        }
}

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list