<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智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                # Compiler Error CS0266 無法將類型“type1”隱式轉換為“type2”。存在顯式轉換(是否缺少強制轉換?) 當代碼嘗試在無法進行隱式轉換的兩個類型上嘗試轉換時,此錯誤發生。有關詳細信息,請參閱[強制轉換和類型轉換(C# 編程指南)](https://msdn.microsoft.com/zh-cn/library/ms173105.aspx)。 下面的代碼演示生成 CS0266 的示例。 ``` // CS0266.cs class MyClass { public static void Main() { // You cannot implicitly convert a double to an integer. double d = 3.2; // The following line causes compiler error CS0266. int i1 = d; // However, you can resolve the error by using an explicit conversion. int i2 = (int)d; // You cannot implicitly convert an object to a class type. object obj = "MyString"; // The following assignment statement causes error CS0266. MyClass myClass = obj; // You can resolve the error by using an explicit conversion. MyClass c = ( MyClass )obj; // You cannot implicitly convert a base class object to a derived class type. MyClass mc = new MyClass(); DerivedClass dc = new DerivedClass(); // The following line causes compiler error CS0266. dc = mc; // You can resolve the error by using an explicit conversion. dc = (DerivedClass)mc; } } class DerivedClass : MyClass { } ```
                  <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>

                              哎呀哎呀视频在线观看