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

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                # Compiler Error CS1614 “name”不明確的;在“attribute1”和“attribute2”之間。請使用" @attribute”或“attributeAttribute” 編譯器遇到了意義不明確的特性指定。 為簡便起見,C# 編譯器允許將 **ExampleAttribute** 指定為 [Example]。不過,如果名為 **Example** 的特性類與 **ExampleAttribute** 同時存在,則會引起多義性,因為編譯器無法判斷 [Example] 是指 **Example** 特性還是指 **ExampleAttribute** 特性。要解決此問題,請對 **Example** 特性使用 [@Example],對 **ExampleAttribute** 使用 [ExampleAttribute]。 下面的示例生成 CS1614: ``` // CS1614.cs using System; // Both of the following classes are valid attributes with valid // names (MySpecial and MySpecialAttribute). However, because the lookup // rules for attributes involves auto-appending the 'Attribute' suffix // to the identifier, these two attributes become ambiguous; that is, // if you specify MySpecial, the compiler can't tell if you want // MySpecial or MySpecialAttribute. public class MySpecial : Attribute { public MySpecial() {} } public class MySpecialAttribute : Attribute { public MySpecialAttribute() {} } class MakeAWarning { [MySpecial()] // CS1614 // Ambiguous: MySpecial or MySpecialAttribute? public static void Main() { } [@MySpecial()] // This isn't ambiguous, it binds to the first attribute above. public static void NoWarning() { } [MySpecialAttribute()] // This isn't ambiguous, it binds to the second attribute above. public static void NoWarning2() { } [@MySpecialAttribute()] // This is also legal. public static void NoWarning3() { } } ```
                  <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>

                              哎呀哎呀视频在线观看