<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 CS1061 “type”不包含“member”的定義,并且找不到可接受類型為“type”的第一個參數的擴展方法“name”(是否缺少 using 指令或程序集引用?)。 在嘗試調用的方法或訪問的類成員不存在時,將發生此錯誤。 下面的示例生成 CS1061,因為 TestClass1 沒有 DisplaySomething 方法。它沒有名為 WriteSomething 的方法。該方法可能是此源代碼的作者打算編寫的方法。 ``` // cs1061.cs public class TestClass1 { // TestClass1 has one method, called WriteSomething. public void WriteSomething(string s) { System.Console.WriteLine(s); } } public class TestClass2 { // TestClass2 has one method, called DisplaySomething. public void DisplaySomething(string s) { System.Console.WriteLine(s); } } public class TestTheClasses { public static void Main() { TestClass1 tc1 = new TestClass1(); TestClass2 tc2 = new TestClass2(); // The following call fails because TestClass1 does not have // a method called DisplaySomething. tc1.DisplaySomething("Hello"); // CS1061 // To correct the error, change the method call to either // tc1.WriteSomething or tc2.DisplaySomething. tc1.WriteSomething("Hello from TestClass1"); tc2.DisplaySomething("Hello from TestClass2"); } } ``` ## 請參閱 [類和結構(C# 編程指南)](https://msdn.microsoft.com/zh-cn/library/ms173109.aspx) [擴展方法(C# 編程指南)](https://msdn.microsoft.com/zh-cn/library/bb383977.aspx)
                  <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>

                              哎呀哎呀视频在线观看