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

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

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

        为什么没有像 String.Empty 这样的 Char.Empty?

        Why is there no Char.Empty like String.Empty?(为什么没有像 String.Empty 这样的 Char.Empty?)
      2. <i id='YyeX4'><tr id='YyeX4'><dt id='YyeX4'><q id='YyeX4'><span id='YyeX4'><b id='YyeX4'><form id='YyeX4'><ins id='YyeX4'></ins><ul id='YyeX4'></ul><sub id='YyeX4'></sub></form><legend id='YyeX4'></legend><bdo id='YyeX4'><pre id='YyeX4'><center id='YyeX4'></center></pre></bdo></b><th id='YyeX4'></th></span></q></dt></tr></i><div id='YyeX4'><tfoot id='YyeX4'></tfoot><dl id='YyeX4'><fieldset id='YyeX4'></fieldset></dl></div>
          <tbody id='YyeX4'></tbody>

            <bdo id='YyeX4'></bdo><ul id='YyeX4'></ul>
                <tfoot id='YyeX4'></tfoot>
              1. <small id='YyeX4'></small><noframes id='YyeX4'>

                • <legend id='YyeX4'><style id='YyeX4'><dir id='YyeX4'><q id='YyeX4'></q></dir></style></legend>

                  本文介绍了为什么没有像 String.Empty 这样的 Char.Empty?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  这是有原因的吗?我问是因为如果您需要使用大量空字符,那么您会遇到与使用大量空字符串时相同的情况.

                  Is there a reason for this? I am asking because if you needed to use lots of empty chars then you get into the same situation as you would when you use lots of empty strings.

                  这种用法的原因是这样的:

                  The reason for this usage was this:

                  myString.Replace ('c', '')
                  

                  所以从 myString 中删除所有 'c' 的实例.

                  So remove all instances of 'c's from myString.

                  推荐答案

                  没有空字符这样的东西.您可以获得的最接近的是 '',即 Unicode空"字符.鉴于您可以将它嵌入到字符串文字中或非常容易地单独表达它,为什么您需要一个单独的字段呢?同样,很容易混淆 """ 参数不适用于 ''.

                  There's no such thing as an empty char. The closest you can get is '', the Unicode "null" character. Given that you can embed that within string literals or express it on its own very easily, why would you want a separate field for it? Equally, the "it's easy to confuse "" and " "" arguments don't apply for ''.

                  如果你能举例说明你想在哪里使用它以及为什么你认为它会更好,那可能会有所帮助......

                  If you could give an example of where you'd want to use it and why you think it would be better, that might help...

                  这篇关于为什么没有像 String.Empty 这样的 Char.Empty?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Force JsonConvert.SerializeXmlNode to serialize node value as an Integer or a Boolean(强制 JsonConvert.SerializeXmlNode 将节点值序列化为整数或布尔值)
                  Using JSON to Serialize/Deserialize TimeSpan(使用 JSON 序列化/反序列化 TimeSpan)
                  Could not determine JSON object type for type quot;Classquot;(无法确定类型“Class的 JSON 对象类型.)
                  How to deserialize a JSONP response (preferably with JsonTextReader and not a string)?(如何反序列化 JSONP 响应(最好使用 JsonTextReader 而不是字符串)?)
                  how to de-serialize JSON data in which Timestamp it-self contains fields?(如何反序列化时间戳本身包含字段的JSON数据?)
                  JSON.Net custom contract serialization and Collections(JSON.Net 自定义合约序列化和集合)
                • <tfoot id='1swkU'></tfoot>

                  • <bdo id='1swkU'></bdo><ul id='1swkU'></ul>

                      1. <small id='1swkU'></small><noframes id='1swkU'>

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