久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <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="qwawimqqmiuu" 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="qwawimqqmiuu" 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;的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我正在使用 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 中有沒有辦法做到這一點?還是其他方式?謝謝!

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

                  推薦答案

                  嘗試使用 xsd2code.這比 xsd.exe 效果更好.您還可以通過設(shè)置 CollectionObjectType 屬性來指定您希望您的集合如何成為一個選項.列表或數(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;的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

                  What are good algorithms for vehicle license plate detection?(車牌檢測有哪些好的算法?)
                  onClick event for Image in Unity(Unity中圖像的onClick事件)
                  Running Total C#(運行總 C#)
                  Deleting a directory when clicked on a hyperlink with JAvascript.ASP.NET C#(單擊帶有 JAvascript.ASP.NET C# 的超鏈接時刪除目錄)
                  asp.net listview highlight row on click(asp.net listview 在單擊時突出顯示行)
                  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="qwawimqqmiuu" id='FVm96'><tfoot id='FVm96'></tfoot><dl id='FVm96'><fieldset id='FVm96'></fieldset></dl></div>
                            主站蜘蛛池模板: 一级毛片观看 | 北条麻妃国产九九九精品小说 | 国产精彩视频 | 播放一级黄色片 | a免费视频| 免费看黄色国产 | 久久亚洲一区 | 亚洲国产精久久久久久久 | 日韩在线免费视频 | 国产在线精品一区二区 | 中文字幕 亚洲一区 | 久久久亚洲精品视频 | 亚洲精品免费在线观看 | 一级aaaaaa毛片免费同男同女 | 欧美男人天堂 | 国产欧美日韩在线播放 | 蜜臀网站| 欧美一区二区三区在线观看视频 | 久久久www成人免费精品 | 亚洲视频免费在线 | 国产精品一区二区久久精品爱微奶 | 狠狠操在线 | 国产日韩一区二区 | 日韩1区 | 国产成人精品一区二区在线 | 一区二区av | 一级看片 | 在线观看中文字幕视频 | 天天操天天射综合网 | 国产成人精品网站 | 精品国产一区二区在线 | 日韩欧美三区 | 成人在线一区二区 | 一区二区三区免费 | 亚洲精品免费在线观看 | 亚洲欧美一区二区三区在线 | 国产成人精品视频 | 狠狠色综合久久丁香婷婷 | 久久aⅴ乱码一区二区三区 亚洲国产成人精品久久久国产成人一区 | 黄色一级大片在线观看 | 成年人网站免费视频 |