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

      <i id='X3yCV'><tr id='X3yCV'><dt id='X3yCV'><q id='X3yCV'><span id='X3yCV'><b id='X3yCV'><form id='X3yCV'><ins id='X3yCV'></ins><ul id='X3yCV'></ul><sub id='X3yCV'></sub></form><legend id='X3yCV'></legend><bdo id='X3yCV'><pre id='X3yCV'><center id='X3yCV'></center></pre></bdo></b><th id='X3yCV'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='X3yCV'><tfoot id='X3yCV'></tfoot><dl id='X3yCV'><fieldset id='X3yCV'></fieldset></dl></div>
    1. <small id='X3yCV'></small><noframes id='X3yCV'>

    2. <legend id='X3yCV'><style id='X3yCV'><dir id='X3yCV'><q id='X3yCV'></q></dir></style></legend>
      • <bdo id='X3yCV'></bdo><ul id='X3yCV'></ul>
      <tfoot id='X3yCV'></tfoot>
    3. 為什么 xsd.exe 會為 xs:integer 生成字符串屬性?

      Why does xsd.exe generate string property for xs:integer?(為什么 xsd.exe 會為 xs:integer 生成字符串屬性?)
      <tfoot id='EBMcm'></tfoot>

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

            <legend id='EBMcm'><style id='EBMcm'><dir id='EBMcm'><q id='EBMcm'></q></dir></style></legend>

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

                <tbody id='EBMcm'></tbody>
                <i id='EBMcm'><tr id='EBMcm'><dt id='EBMcm'><q id='EBMcm'><span id='EBMcm'><b id='EBMcm'><form id='EBMcm'><ins id='EBMcm'></ins><ul id='EBMcm'></ul><sub id='EBMcm'></sub></form><legend id='EBMcm'></legend><bdo id='EBMcm'><pre id='EBMcm'><center id='EBMcm'></center></pre></bdo></b><th id='EBMcm'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='EBMcm'><tfoot id='EBMcm'></tfoot><dl id='EBMcm'><fieldset id='EBMcm'></fieldset></dl></div>
              • 本文介紹了為什么 xsd.exe 會為 xs:integer 生成字符串屬性?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                限時送ChatGPT賬號..

                當我使用 xsd.exe 從 xsd 架構生成 c# 類時,我發現這種行為有點奇怪.

                When I generate a c# class from a xsd schema with xsd.exe I find this behaivor a bit wierd.

                我的元素:

                <xs:element name="InvoiceNo" type="xs:integer"/>
                

                生成到:

                [System.Xml.Serialization.XmlElementAttribute(DataType="integer", Order=5)]
                public string InvoiceNo
                {
                   ...
                }
                

                為什么該屬性沒有生成為 int 而不是 string?

                Why is that property not generated as an int instead of string?

                推薦答案

                這種行為是設計使然:

                xs:integer 類型被指定為沒有大小寫的數字受限于它的大小.因此,XML 序列化和驗證將其映射到 System.Int32 類型.相反,XML 序列化將 xs:integer 映射到字符串,而驗證將其映射到Decimal 類型,遠大于.NET 框架

                The xs:integer type is specified as a number with no upper or lower bound on its size. For this reason, neither XML serialization nor validation map it to the System.Int32 type. Instead, XML serialization maps the xs:integer to a string while validation maps it to the Decimal type that is much larger than any of the integer types in the .NET Framework

                使用 xs:int,它是一個有符號的 32 位整數,具有 Xsd.exe 將其映射到 System.Int32:

                Use xs:int, which is a signed 32-bit integer, to have Xsd.exe map it to a System.Int32:

                <xs:element name="InvoiceNo" type="xs:int" />
                

                這里是 XML 架構定義標準中定義的數據類型的詳細列表.

                Here's a detailed list of the data types defined in the XML Schema Definition standard.

                這篇關于為什么 xsd.exe 會為 xs:integer 生成字符串屬性?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                相關文檔推薦

                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(從函數調用按鈕 OnClick)

                  <small id='1lPkM'></small><noframes id='1lPkM'>

                    <bdo id='1lPkM'></bdo><ul id='1lPkM'></ul>
                    <tfoot id='1lPkM'></tfoot>

                      <legend id='1lPkM'><style id='1lPkM'><dir id='1lPkM'><q id='1lPkM'></q></dir></style></legend>
                    1. <i id='1lPkM'><tr id='1lPkM'><dt id='1lPkM'><q id='1lPkM'><span id='1lPkM'><b id='1lPkM'><form id='1lPkM'><ins id='1lPkM'></ins><ul id='1lPkM'></ul><sub id='1lPkM'></sub></form><legend id='1lPkM'></legend><bdo id='1lPkM'><pre id='1lPkM'><center id='1lPkM'></center></pre></bdo></b><th id='1lPkM'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='1lPkM'><tfoot id='1lPkM'></tfoot><dl id='1lPkM'><fieldset id='1lPkM'></fieldset></dl></div>
                            <tbody id='1lPkM'></tbody>
                          主站蜘蛛池模板: 亚洲www啪成人一区二区麻豆 | 蜜桃一区二区三区 | 久久综合国产精品 | 国产精品久久国产精品 | 成人av网站在线观看 | 日韩成人在线看 | 日韩成人免费中文字幕 | 亚洲国产二区 | 久久精品a | 成人av激情 | 精品久久久久久久久久 | 蜜桃视频在线观看www社区 | 国产伦精品 | 日韩视频免费在线 | 日本理论片好看理论片 | 九九热re| 99国产精品久久久久久久 | 日本三级电影在线免费观看 | 午夜一级大片 | 国产亚洲精品久久久久动 | 国产69精品久久99不卡免费版 | 成人福利网 | 精品欧美一区二区三区久久久 | 亚洲免费在线观看视频 | 视频一区二区国产 | 欧美日韩在线看 | 日韩电影一区 | 黄色大全免费看 | 日韩av福利在线观看 | 日韩在线国产精品 | 久久av资源网 | 成人精品一区二区 | 国产精品一区二区在线 | 91久久精品国产91久久性色tv | 日本一区二区在线视频 | 成人h电影在线观看 | 日韩成人免费视频 | 日本超碰在线 | 久久99精品久久久久久琪琪 | 365夜爽爽欧美性午夜免费视频 | 成人夜晚看av|