• <tfoot id='GhNVi'></tfoot>

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

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

      <legend id='GhNVi'><style id='GhNVi'><dir id='GhNVi'><q id='GhNVi'></q></dir></style></legend>
        <i id='GhNVi'><tr id='GhNVi'><dt id='GhNVi'><q id='GhNVi'><span id='GhNVi'><b id='GhNVi'><form id='GhNVi'><ins id='GhNVi'></ins><ul id='GhNVi'></ul><sub id='GhNVi'></sub></form><legend id='GhNVi'></legend><bdo id='GhNVi'><pre id='GhNVi'><center id='GhNVi'></center></pre></bdo></b><th id='GhNVi'></th></span></q></dt></tr></i><div id='GhNVi'><tfoot id='GhNVi'></tfoot><dl id='GhNVi'><fieldset id='GhNVi'></fieldset></dl></div>
      1. Json.Net:用于自定义命名的 JsonSerializer-Attribute

        时间:2023-08-23

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

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

          <i id='1gkBO'><tr id='1gkBO'><dt id='1gkBO'><q id='1gkBO'><span id='1gkBO'><b id='1gkBO'><form id='1gkBO'><ins id='1gkBO'></ins><ul id='1gkBO'></ul><sub id='1gkBO'></sub></form><legend id='1gkBO'></legend><bdo id='1gkBO'><pre id='1gkBO'><center id='1gkBO'></center></pre></bdo></b><th id='1gkBO'></th></span></q></dt></tr></i><div id='1gkBO'><tfoot id='1gkBO'></tfoot><dl id='1gkBO'><fieldset id='1gkBO'></fieldset></dl></div>
        • <legend id='1gkBO'><style id='1gkBO'><dir id='1gkBO'><q id='1gkBO'></q></dir></style></legend>

                <tbody id='1gkBO'></tbody>

                  本文介绍了Json.Net:用于自定义命名的 JsonSerializer-Attribute的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我使用 Newtonsoft 的 JsonSerializer.

                  I use the JsonSerializer from Newtonsoft.

                  但我想自己命名 json 对象.

                  But i want to name the json-objects by myself.

                  我试过 JsonObject 属性

                  [JsonObject(Description = "MyName", Title = "orThisname")]
                  

                  JsonArray 也没有工作...json-objetcs/arrays 可以自己命名吗?

                  JsonArray also didnt work... Is it possible to name the json-objetcs/arrays by myself?

                  推荐答案

                  我想我找到了解决方案:

                  I think I found the solution:

                  [JsonProperty(PropertyName = "Myname")]
                  

                  将重命名.

                  这篇关于Json.Net:用于自定义命名的 JsonSerializer-Attribute的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:在 C# 中搜索 JSON.net 对象内的嵌套值 下一篇:如何在使用 JSON.Net 进行序列化期间有条件地忽略

                  相关文章

                  最新文章

                  1. <i id='IubDq'><tr id='IubDq'><dt id='IubDq'><q id='IubDq'><span id='IubDq'><b id='IubDq'><form id='IubDq'><ins id='IubDq'></ins><ul id='IubDq'></ul><sub id='IubDq'></sub></form><legend id='IubDq'></legend><bdo id='IubDq'><pre id='IubDq'><center id='IubDq'></center></pre></bdo></b><th id='IubDq'></th></span></q></dt></tr></i><div id='IubDq'><tfoot id='IubDq'></tfoot><dl id='IubDq'><fieldset id='IubDq'></fieldset></dl></div>
                  2. <legend id='IubDq'><style id='IubDq'><dir id='IubDq'><q id='IubDq'></q></dir></style></legend>
                    <tfoot id='IubDq'></tfoot>

                  3. <small id='IubDq'></small><noframes id='IubDq'>

                    • <bdo id='IubDq'></bdo><ul id='IubDq'></ul>