<bdo id='1rADS'></bdo><ul id='1rADS'></ul>

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

      1. <legend id='1rADS'><style id='1rADS'><dir id='1rADS'><q id='1rADS'></q></dir></style></legend>

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

      2. JsonConvert.SerializeObject 在 XamarinForms 中总是返回

        时间:2023-08-24

          1. <legend id='lSIc0'><style id='lSIc0'><dir id='lSIc0'><q id='lSIc0'></q></dir></style></legend>
            <tfoot id='lSIc0'></tfoot>
              <tbody id='lSIc0'></tbody>

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

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

                <bdo id='lSIc0'></bdo><ul id='lSIc0'></ul>
                1. 本文介绍了JsonConvert.SerializeObject 在 XamarinForms 中总是返回 {}的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  JsonConvert.SerializeObject 似乎不适用于 xamarin 形式.或者我可能在这里遗漏了一些东西.这是我序列化一个简单对象时的输出.

                  JsonConvert.SerializeObject seems to be not working in xamarin forms. Or i might be missing something here. Here is the output when i serialize a simple object.

                  看到它返回 {}.我也尝试序列化一个类,它确实返回了相同的结果.

                  See it returns {}. I tried serializing a class also and it did return the same.

                  这可能是什么问题?

                  更新

                  仍然没有解决这个问题.我尝试创建一个简单的控制台应用程序,并且 serializeObject 正在处理该项目,所以我认为它不能仅在 xamarin 表单中工作.有人有 JSON.NET 的 serializeobject 工作的 xamarin 表单项目吗?

                  Still no solution to this issue. I tried creating a simple console application and serializeObject is working on that project so i assume it is not working in xamarin forms only. Does anybody have a xamarin forms project where JSON.NET's serializeobject is working?

                  我正在使用 Visual Studio 2017、json.net 10.0.3 和实时播放器.

                  I am using visual studio 2017, json.net 10.0.3 and live player.

                  推荐答案

                  我尝试在一台快速机器上设置模拟器并且序列化工作!所以这意味着当我使用我的安卓手机在现场播放器上运行它时它不起作用.我现在将其设置为答案.如果其他人发布了如何使其在现场播放器上运行,我会将其设置为正确答案

                  I tried setting up emulator on a fast machine and the serialize works! So it means it doesn't work when i run it on live player using my android phone. I will set this as an answer for now. if someone else posted on how to make it work on live player, i will set it as the correct answer

                  这篇关于JsonConvert.SerializeObject 在 XamarinForms 中总是返回 {}的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:Json.NET 按深度和属性序列化 下一篇:Newtonsoft JSON.net 反序列化错误,其中 JSON 中的字段

                  相关文章

                  最新文章

                2. <legend id='rDjcX'><style id='rDjcX'><dir id='rDjcX'><q id='rDjcX'></q></dir></style></legend>

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

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