pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

    <bdo id='tH8P8'></bdo><ul id='tH8P8'></ul>
<legend id='tH8P8'><style id='tH8P8'><dir id='tH8P8'><q id='tH8P8'></q></dir></style></legend>
  • <tfoot id='tH8P8'></tfoot>

      <small id='tH8P8'></small><noframes id='tH8P8'>

        <i id='tH8P8'><tr id='tH8P8'><dt id='tH8P8'><q id='tH8P8'><span id='tH8P8'><b id='tH8P8'><form id='tH8P8'><ins id='tH8P8'></ins><ul id='tH8P8'></ul><sub id='tH8P8'></sub></form><legend id='tH8P8'></legend><bdo id='tH8P8'><pre id='tH8P8'><center id='tH8P8'></center></pre></bdo></b><th id='tH8P8'></th></span></q></dt></tr></i><div class="jdx55nx" id='tH8P8'><tfoot id='tH8P8'></tfoot><dl id='tH8P8'><fieldset id='tH8P8'></fieldset></dl></div>

        XSD:使用 Visual Studio xsd.exe 不生成 Array[] 而不是

        XSD: Using Visual studio xsd.exe not generating Array[] instead of Listlt;gt;(XSD:使用 Visual Studio xsd.exe 不生成 Array[] 而不是 Listlt;gt;)

          <bdo id='hKFcj'></bdo><ul id='hKFcj'></ul>

              <i id='hKFcj'><tr id='hKFcj'><dt id='hKFcj'><q id='hKFcj'><span id='hKFcj'><b id='hKFcj'><form id='hKFcj'><ins id='hKFcj'></ins><ul id='hKFcj'></ul><sub id='hKFcj'></sub></form><legend id='hKFcj'></legend><bdo id='hKFcj'><pre id='hKFcj'><center id='hKFcj'></center></pre></bdo></b><th id='hKFcj'></th></span></q></dt></tr></i><div class="th5vl5t" id='hKFcj'><tfoot id='hKFcj'></tfoot><dl id='hKFcj'><fieldset id='hKFcj'></fieldset></dl></div>
              • <tfoot id='hKFcj'></tfoot>

                <small id='hKFcj'></small><noframes id='hKFcj'>

                  <tbody id='hKFcj'></tbody>
              • <legend id='hKFcj'><style id='hKFcj'><dir id='hKFcj'><q id='hKFcj'></q></dir></style></legend>
                • 本文介紹了XSD:使用 Visual Studio xsd.exe 不生成 Array[] 而不是 List&lt;&gt;的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問題描述

                  限時(shí)送ChatGPT賬號(hào)..

                  我正在使用 xsd.exe 工具從 xsd 文件生成類.xsd 文件:

                  Im using the xsd.exe tool to generate classes from a xsd file. The xsd file:

                  <?xml version="1.0" encoding="UTF-8"?>
                  <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"  elementFormDefault="qualified"      attributeFormDefault="unqualified">
                  <xs:element name="BAXML">
                  <xs:annotation>
                    <xs:documentation></xs:documentation>
                  </xs:annotation>
                  <xs:complexType>
                    <xs:sequence>      
                      <xs:element name="Limit" minOccurs="1" maxOccurs="10">    
                       <xs:complexType>
                          <xs:sequence>
                            <xs:element name="LimitType">
                              <xs:annotation>
                                <xs:documentation></xs:documentation>
                              </xs:annotation>
                              <xs:simpleType>
                                <xs:restriction base="xs:string">
                                  <xs:minLength value="3"/>
                                  <xs:maxLength value="10"/>
                                </xs:restriction>
                              </xs:simpleType>
                            </xs:element>
                            <xs:element name="Amount">
                              <xs:annotation>
                                <xs:documentation></xs:documentation>
                              </xs:annotation>
                              <xs:simpleType>
                                <xs:restriction base="xs:int">
                                </xs:restriction>
                              </xs:simpleType>
                            </xs:element>
                          </xs:sequence>
                        </xs:complexType>
                      </xs:element>
                    </xs:sequence>
                  </xs:complexType>
                  

                  輸出是:

                  /// <remarks/>
                  [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.1")]
                  [System.SerializableAttribute()]
                  [System.Diagnostics.DebuggerStepThroughAttribute()]
                  [System.ComponentModel.DesignerCategoryAttribute("code")]
                  [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
                  [System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=false)]
                  public partial class BAXML {
                  
                  private string counterpartyOrgNrField;
                  
                  private BAXMLLimit[] limitField;
                  
                  
                  /// <remarks/>
                  [System.Xml.Serialization.XmlElementAttribute("Limit")]
                  public BAXMLLimit[] Limit {
                      get {
                          return this.limitField;
                      }
                      set {
                          this.limitField = value;
                      }
                  }}
                  
                  /// <remarks/>
                  [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.1")]
                  [System.SerializableAttribute()]
                  [System.Diagnostics.DebuggerStepThroughAttribute()]
                  [System.ComponentModel.DesignerCategoryAttribute("code")]
                  [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
                  public partial class BAXMLLimit {
                  
                  private string limitTypeField;
                  
                  private int amountField;
                  
                  /// <remarks/>
                  public string LimitType {
                      get {
                          return this.limitTypeField;
                      }
                      set {
                          this.limitTypeField = value;
                      }}
                  
                  /// <remarks/>
                  public int Amount {
                      get {
                          return this.amountField;
                      }
                      set {
                          this.amountField = value;
                      }
                  }}
                  

                  代替:

                  private BAXMLLimit[] limitField;
                  

                  我希望它是

                  List<BAXMLLimit> limitField
                  

                  xsd 中有沒有辦法做到這一點(diǎn)?還是其他方式?謝謝!

                  Is there a way in the xsd todo this? Or some other way? Thx!

                  推薦答案

                  嘗試使用 xsd2code.這比 xsd.exe 效果更好.您還可以通過設(shè)置 CollectionObjectType 屬性來(lái)指定您希望您的集合如何成為一個(gè)選項(xiàng).列表或數(shù)組.

                  Try using xsd2code. This works better than xsd.exe. You can also specify as an option how you want your collections to be.. List or an Array by setting the CollectionObjectType property.

                  這篇關(guān)于XSD:使用 Visual Studio xsd.exe 不生成 Array[] 而不是 List&lt;&gt;的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  What are good algorithms for vehicle license plate detection?(車牌檢測(cè)有哪些好的算法?)
                  onClick event for Image in Unity(Unity中圖像的onClick事件)
                  Running Total C#(運(yùn)行總 C#)
                  Deleting a directory when clicked on a hyperlink with JAvascript.ASP.NET C#(單擊帶有 JAvascript.ASP.NET C# 的超鏈接時(shí)刪除目錄)
                  asp.net listview highlight row on click(asp.net listview 在單擊時(shí)突出顯示行)
                  Calling A Button OnClick from a function(從函數(shù)調(diào)用按鈕 OnClick)
                • <small id='FVm96'></small><noframes id='FVm96'>

                  <legend id='FVm96'><style id='FVm96'><dir id='FVm96'><q id='FVm96'></q></dir></style></legend>
                      <tbody id='FVm96'></tbody>
                      <bdo id='FVm96'></bdo><ul id='FVm96'></ul>

                        <tfoot id='FVm96'></tfoot>
                            <i id='FVm96'><tr id='FVm96'><dt id='FVm96'><q id='FVm96'><span id='FVm96'><b id='FVm96'><form id='FVm96'><ins id='FVm96'></ins><ul id='FVm96'></ul><sub id='FVm96'></sub></form><legend id='FVm96'></legend><bdo id='FVm96'><pre id='FVm96'><center id='FVm96'></center></pre></bdo></b><th id='FVm96'></th></span></q></dt></tr></i><div class="hf755x7" id='FVm96'><tfoot id='FVm96'></tfoot><dl id='FVm96'><fieldset id='FVm96'></fieldset></dl></div>
                            主站蜘蛛池模板: 智能楼宇-楼宇自控系统-楼宇智能化-楼宇自动化-三水智能化 | 磁力抛光机_磁力研磨机_磁力去毛刺机-冠古设备厂家|维修|租赁【官网】 | 广州监控安装公司_远程监控_安防弱电工程_无线wifi覆盖_泉威安防科技 | 铸铁平台,大理石平台专业生产厂家_河北-北重机械 | 有机肥设备生产制造厂家,BB掺混肥搅拌机、复合肥设备生产线,有机肥料全部加工设备多少钱,对辊挤压造粒机,有机肥造粒设备 -- 郑州程翔重工机械有限公司 | 365文案网_全网创意文案句子素材站 | 不锈钢螺丝 - 六角螺丝厂家 - 不锈钢紧固件 - 万千紧固件--紧固件一站式采购 | 专业深孔加工_东莞深孔钻加工_东莞深孔钻_东莞深孔加工_模具深孔钻加工厂-东莞市超耀实业有限公司 | 游泳池设备安装工程_恒温泳池设备_儿童游泳池设备厂家_游泳池水处理设备-东莞市君达泳池设备有限公司 | 别墅图纸超市|别墅设计图纸|农村房屋设计图|农村自建房|别墅设计图纸及效果图大全 | 压砖机、液压制砖机、静压砖机、环保砖机生产厂家—杜甫机械 | 影像测量仪_三坐标测量机_一键式二次元_全自动影像测量仪-广东妙机精密科技股份有限公司 | 环球周刊网| 篮球架_乒乓球台_足球门_校园_竞技体育器材_厂家_价格-沧州浩然体育器材有限公司 | 中控室大屏幕-上海亿基自动化控制系统工程有限公司 | 华溶溶出仪-Memmert稳定箱-上海协烁仪器科技有限公司 | 回转支承-转盘轴承-回转驱动生产厂家-洛阳隆达轴承有限公司 | 安全,主动,被动,柔性,山体滑坡,sns,钢丝绳,边坡,防护网,护栏网,围栏,栏杆,栅栏,厂家 - 护栏网防护网生产厂家 | 聚合氯化铝_喷雾聚氯化铝_聚合氯化铝铁厂家_郑州亿升化工有限公司 | 工业胀紧套_万向节联轴器_链条-规格齐全-型号选购-非标订做-厂家批发价格-上海乙谛精密机械有限公司 | 全自动烧卖机厂家_饺子机_烧麦机价格_小笼汤包机_宁波江北阜欣食品机械有限公司 | 等离子空气净化器_医用空气消毒机_空气净化消毒机_中央家用新风系统厂家_利安达官网 | 定制液氮罐_小型气相液氮罐_自增压液氮罐_班德液氮罐厂家 | 拉力测试机|材料拉伸试验机|电子拉力机价格|万能试验机厂家|苏州皖仪实验仪器有限公司 | 真空泵维修保养,普发,阿尔卡特,荏原,卡西亚玛,莱宝,爱德华干式螺杆真空泵维修-东莞比其尔真空机电设备有限公司 | 众品地板网-地板品牌招商_地板装修设计_地板门户的首选网络媒体。 | 亿诺千企网-企业核心产品贸易 | 交通信号灯生产厂家_红绿灯厂家_电子警察监控杆_标志杆厂家-沃霖电子科技 | 中开泵,中开泵厂家,双吸中开泵-山东博二泵业有限公司 | 山东锐智科电检测仪器有限公司_超声波测厚仪,涂层测厚仪,里氏硬度计,电火花检漏仪,地下管线探测仪 | 中控室大屏幕-上海亿基自动化控制系统工程有限公司 | 线材成型机,线材折弯机,线材成型机厂家,贝朗自动化设备有限公司1 | 直流电能表-充电桩电能表-导轨式电能表-智能电能表-浙江科为电气有限公司 | 激光内雕_led玻璃_发光玻璃_内雕玻璃_导光玻璃-石家庄明晨三维科技有限公司 激光内雕-内雕玻璃-发光玻璃 | 飞扬动力官网-广告公司管理软件,广告公司管理系统,喷绘写真条幅制作管理软件,广告公司ERP系统 | 粘度计维修,在线粘度计,二手博勒飞粘度计维修|收购-天津市祥睿科技有限公司 | 转向助力泵/水泵/发电机皮带轮生产厂家-锦州华一精工有限公司 | 常州律师事务所_常州律所_常州律师-江苏乐天律师事务所 | 净水器代理,净水器招商,净水器加盟-FineSky德国法兹全屋净水 | 深圳市八百通智能技术有限公司官方网站| 工业雾炮机_超细雾炮_远程抑尘射雾器-世纪润德环保设备 |