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

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

  2. <tfoot id='9BwRw'></tfoot>

      <legend id='9BwRw'><style id='9BwRw'><dir id='9BwRw'><q id='9BwRw'></q></dir></style></legend>

      恒定錯誤中的新行

      New Line in Constant error(恒定錯誤中的新行)
      <tfoot id='KmP8y'></tfoot>

          <bdo id='KmP8y'></bdo><ul id='KmP8y'></ul>
        • <legend id='KmP8y'><style id='KmP8y'><dir id='KmP8y'><q id='KmP8y'></q></dir></style></legend>

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

                <tbody id='KmP8y'></tbody>

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

              • 本文介紹了恒定錯誤中的新行的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                限時送ChatGPT賬號..

                我正在編寫一個 c# 代碼,我在其中從數據庫中獲取值并使用它.我面臨的問題如下.

                I am writing a c# code in which i am fetching values from the database and using it. The problem i am facing is as below.

                如果我從數據庫中獲取的值是:

                If my fetched value from the database is :

                 string cat1 = "sotheby's";
                

                現在在使用這只貓時,我想在單引號之前插入一個轉義字符,為此我編寫了以下代碼:

                now while using this cat i want to insert an escape character before single quote, to achieve this i have written the below code:

                  string cat1 = "sotheby's";
                                    if (cat1.Contains("'")) {
                                        var indexofquote = cat1.IndexOf("'");
                                        cat1.Insert(indexofquote-1,"");
                                        var cat2 = cat1;
                                    }
                

                插入行中的錯誤上升,反斜杠(轉義字符).錯誤是常量中的新行.請幫助我如何更正此錯誤.

                The error rises in insert line, the backslash(escape character). The error is New Line in Constant. Please help me how to correct this error.

                推薦答案

                你不能只用 C# 代碼編寫 "".這將產生常量中的新行"錯誤,因為它轉義"了第二個引號,因此它不計算在內.并且字符串沒有關閉.

                You can't just write "" in C# code. That will produce the "New Line in Constant" error because it 'escapes' the second quote so that it doesn't count. And the string isn't closed.

                使用 "\" (自行轉義 )
                或使用 @""(逐字字符串).

                Use either "\" (escaping the with itself)
                or use @"" (a verbatim string).

                這篇關于恒定錯誤中的新行的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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)
                    <bdo id='sMWE2'></bdo><ul id='sMWE2'></ul>
                      <tbody id='sMWE2'></tbody>
                    <tfoot id='sMWE2'></tfoot>
                  • <legend id='sMWE2'><style id='sMWE2'><dir id='sMWE2'><q id='sMWE2'></q></dir></style></legend>
                    <i id='sMWE2'><tr id='sMWE2'><dt id='sMWE2'><q id='sMWE2'><span id='sMWE2'><b id='sMWE2'><form id='sMWE2'><ins id='sMWE2'></ins><ul id='sMWE2'></ul><sub id='sMWE2'></sub></form><legend id='sMWE2'></legend><bdo id='sMWE2'><pre id='sMWE2'><center id='sMWE2'></center></pre></bdo></b><th id='sMWE2'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='sMWE2'><tfoot id='sMWE2'></tfoot><dl id='sMWE2'><fieldset id='sMWE2'></fieldset></dl></div>

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

                          主站蜘蛛池模板: 欧美一级欧美三级在线观看 | 国产一区二区黑人欧美xxxx | 国产成人精品999在线观看 | 日韩在线免费视频 | 欧美 日韩 亚洲91麻豆精品 | 国产精品久久久久一区二区三区 | 欧美一区二区三区精品 | 成人不卡| 欧美成人一区二区 | 亚洲一区二区久久 | 一区二区三区欧美在线 | 一区二区三区国产好 | 亚洲国产aⅴ精品 | 日日日视频 | 久久综合九色综合欧美狠狠 | 日韩国产一区二区三区 | 神马久久久久久久久久 | 国产精品1 | 国产精品久久福利 | 91精品久久久久久久久99蜜臂 | 国产亚洲人成a在线v网站 | 亚洲国产成人久久综合一区,久久久国产99 | 欧美一区二区大片 | 视频第一区 | 国产三区视频在线观看 | 亚洲 欧美 另类 综合 偷拍 | 黄色av网站免费看 | 日韩成人免费视频 | av一区二区三区四区 | 亚洲风情在线观看 | 中文字幕在线观看一区 | 美女人人操| 精品国产不卡一区二区三区 | 国产成人久久精品一区二区三区 | 中文字幕日韩av | 91精品国产色综合久久不卡蜜臀 | 日韩一二三区视频 | 不卡一区二区三区四区 | 9久9久9久女女女九九九一九 | 日韩福利在线 | 网站国产|