<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>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # Compiler Error CS0686 訪問符“accessor”無法實現類型“type”的接口成員“member”。使用顯式接口實現。 提示:當實現一個接口時,如果其中包含的方法名稱與屬性或事件關聯的自動生成的方法相沖突,會出現此錯誤。屬性的 get/set 方法生成為 get_property 和 set_property,事件的 add/remove 方法生成為 add_event 和 remove_event。如果接口包含其中的任何一個方法,則發生沖突。要避免此錯誤,請使用顯式接口實現來實現這些方法。要這樣做,請將函數指定為: ``` Interface.get_property() { /* */ } Interface.set_property() { /* */ } ``` 以下示例生成 CS0686: ``` // CS0686.cs interface I { int get_P(); } class C : I { public int P { get { return 1; } // CS0686 } } // But the following is valid: class D : I { int I.get_P() { return 1; } public static void Main() {} } ``` 聲明事件時也會發生此錯誤。事件結構自動生成 add_**event** 和 remove_**event** 方法,這可能和接口中的同名方法相沖突,如下示例所示: ``` // CS0686b.cs using System; interface I { void add_OnMyEvent(EventHandler e); } class C : I { public event EventHandler OnMyEvent { add { } // CS0686 remove { } } } // Correct (using explicit interface implementation): class D : I { void I.add_OnMyEvent(EventHandler e) {} public static void Main() {} } ```
                  <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>

                              哎呀哎呀视频在线观看