Десериализация xml файла

Radzhab

Client
Регистрация
23.05.2014
Сообщения
1 500
Благодарностей
1 264
Баллы
113
В общем есть класс десериализации. Как это дело пихнуть в Zenno. Вставил в c#. Выбросил туеву кучу ошибок

Код:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WindowsFormsApplication1
{
    //------------------------------------------------------------------------------
    // <auto-generated>
    //     Этот код создан программой.
    //     Исполняемая версия:2.0.50727.8000
    //
    //     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
    //     повторной генерации кода.
    // </auto-generated>
    //------------------------------------------------------------------------------

    using System.Xml.Serialization;

    //
    // Этот исходный код был создан с помощью xsd, версия=2.0.50727.3038.
    //


    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://trucks.dmir.ru/")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace = "http://trucks.dmir.ru/", IsNullable = false)]
    public partial class ArrayOfJsonIdNameObject
    {

        private ArrayOfJsonIdNameObjectJsonIdNameObject[] itemsField;

        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("JsonIdNameObject")]
        public ArrayOfJsonIdNameObjectJsonIdNameObject[] Items
        {
            get
            {
                return this.itemsField;
            }
            set
            {
                this.itemsField = value;
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://trucks.dmir.ru/")]
    public partial class ArrayOfJsonIdNameObjectJsonIdNameObject
    {

        private string nameField;

        private string idField;

        private string aliasField;

        private string isExistsField;

        /// <remarks/>
        public string Name
        {
            get
            {
                return this.nameField;
            }
            set
            {
                this.nameField = value;
            }
        }

        /// <remarks/>
        public string Id
        {
            get
            {
                return this.idField;
            }
            set
            {
                this.idField = value;
            }
        }

        /// <remarks/>
        public string Alias
        {
            get
            {
                return this.aliasField;
            }
            set
            {
                this.aliasField = value;
            }
        }

        /// <remarks/>
        public string IsExists
        {
            get
            {
                return this.isExistsField;
            }
            set
            {
                this.isExistsField = value;
            }
        }
    }

}
 
Регистрация
03.12.2012
Сообщения
187
Благодарностей
89
Баллы
28

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)