WCF DataMember List<> without enclosing element

前端 未结 2 1142
时光说笑
时光说笑 2021-01-20 19:28

The following DataContract:

    [DataContract(Namespace = \"http://namespace\", Name = \"Blarg\")]
    public class Blarg
    {
        [XmlAttribute(\"Attri         


        
2条回答
  •  深忆病人
    2021-01-20 19:43

    I found the answer here. See the short story bellow(for the long one checkout the url):

     [XmlElement ("Parameter")]
        public List Parameters;
    

提交回复
热议问题