C# Xml中映射为类数据结构(报文)

        [System.Runtime.Serialization.DataMemberAttribute()]
        public Information Archive {
            get {
                return this.archiveField;
            }
            set {
                    this.archiveField = value;

            }
        }
        
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.Runtime.Serialization.DataMemberAttribute()]
        public string Xmlns {
        get {
                return this.xmlnsField;
            }
            set {
                    this.xmlnsField = value;
            }
        }

【[System.Xml.Serialization.XmlAttributeAttribute()]】描述该属性为XML节点属性。

你可能感兴趣的:(C#)