<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                C# 中文字符比較 or C#漢字比較 or ?C# 中文字符串比較 or C#中文名字比較 原文鏈接:https://blog.csdn.net/u013628121/article/details/53782932 ``` /// <summary> ///?類擴展 /// </summary> public static class StringEx { ??? /// <summary> ??? /// 比較中文字符是否相等 ??? /// </summary> ??? /// <param name="name1"></param> ??? /// <param name="name2"></param> ??? /// <returns></returns> ??? public static bool ChinesComPare(this string name1,string name2) ??? { ??????? name1 = name1.Replace(" ", "");//去除掉名字直接的空格 ??????? name2 = name2.Replace(" ", "");//去除掉名字直接的空格 ??????? byte[] utf81 = Encoding.UTF8.GetBytes(name1); ??????? byte[] utf82 = Encoding.UTF8.GetBytes(name2); ??????? bool equal = utf81.IsEqual(utf82); ??????? return equal; ??? } ??? /// <summary> ??? /// 比較2個字節數組是否相等 ??? /// </summary> ??? /// <param name="src"></param> ??? /// <param name="dis"></param> ??? /// <returns></returns> ??? public static bool IsEqual(this byte[] src, byte[] dis) ??? { ??????? bool isEq = false; ??????? if (src.Length != dis.Length) ??????? { ??????????? isEq = false; ??????? } ??????? else ??????? { ??????????? isEq = true; ??????????? for (int i = 0; i < src.Length; i++) ??????????? { ??????????????? if (src[i] != dis[i]) ??????????????? { ??????????????????? isEq = false; ??????????????????? break; ??????????????? } ??????????? } ??????? } ??????? return isEq; ??? } } ??????? string n1 = "楊光"; ??????? string n2 = "楊 光 "; ??????? if (n1.ChinesComPare(n2)) ??????? { ??????????? //true ??????? } ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看