[Mono-bugs] [Bug 551671] Exception in DataContractJsonSerializer when deserializing JSON created by NETFX DataContractJsonSerializer

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Nov 11 09:58:38 EST 2009


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

User christian.weyer at thinktecture.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=551671#c4


Christian Weyer <christian.weyer at thinktecture.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW
      Info Provider|christian.weyer at thinktectur |
                   |e.com                       |




--- Comment #4 from Christian Weyer <christian.weyer at thinktecture.com>  2009-11-11 07:58:37 MST ---
TResult in this case is List<Epsiode> :

using System;
using System.Runtime.Serialization;
using SQLite;

namespace iTecTeacher
{
    /// <summary>
    /// Data contract that represents the contract for a video episode.
    /// </summary>
    [DataContract(
        Name = "TecTeacherEpisode",
        Namespace = Constants.DATA_CONTRACT_NS)]
    [Serializable]
    public partial class Episode
    {
        private int episode;
        private string title;

        /// <summary>
        /// Gets or sets the episode number.
        /// </summary>
        /// <value>The episode number.</value>
        [DataMember(Name="Episode")]
        [Indexed]
        public int ID
        {
            get { return episode; }
            set { episode = value; }
        }

        /// <summary>
        /// Gets or sets the video title.
        /// </summary>
        /// <value>The episode title.</value>
        [DataMember(Name="Title")]
        public string Title
        {
            get { return title; }
            set { title = value; }
        }
    }
}

-- 
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