[Mono-bugs] [Bug 438594] Cannot deserialise base64Binary XmlText

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Dec 9 06:30:05 EST 2008


https://bugzilla.novell.com/show_bug.cgi?id=438594

User atsushi at ximian.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=438594#c3


Atsushi Enomoto <atsushi at ximian.com> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
             Status|REOPENED                                        |RESOLVED
         Resolution|                                                |WORKSFORME




--- Comment #3 from Atsushi Enomoto <atsushi at ximian.com>  2008-12-09 04:30:01 MST ---
Even on deserialization it works (and we don't have any change during these
days).

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

public class Test
{
        [XmlText(DataType="base64Binary")] public byte[] Value;

        public static void Main ()
        {
                XmlSerializer ser = new XmlSerializer (typeof (Test));
                StringWriter sw = new StringWriter ();
                ser.Serialize (sw,
                        new Test () { Value = new byte [] {1,2,3} });
                ser.Deserialize (new StringReader (sw.ToString ()));
        }
}


-- 
Configure bugmail: https://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