<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 CS0269 使用了未賦值的 out 參數“parameter” 編譯器未能驗證在使用 out 參數之前是否已給它賦值,它的值在賦值時可能未定義。在訪問值之前,請確保為調用的方法中的 **out** 參數賦值。如果您需要使用傳入的變量的值,請改用 **ref** 參數。有關更多信息,請參見[傳遞參數(C# 編程指南)](https://msdn.microsoft.com/zh-cn/library/0f66670z.aspx)。 下面的示例生成 CS0269: ``` // CS0269.cs class C { public static void F(out int i) // One way to resolve the error is to use a ref parameter instead // of an out parameter. //public static void F(ref int i) { // The following line causes a compiler error because no value // has been assigned to i. int k = i; // CS0269 i = 1; // The error does not occur if the order of the two previous // lines is reversed. } public static void Main() { int myInt = 1; F(out myInt); // If the declaration of method F is changed to require a ref // parameter, ref must be specified in the call as well. //F(ref myInt); } } ``` 如果變量的初始化發生在 try 塊中,則也會出現此錯誤,因為編譯器無法驗證 try 塊是否可以成功執行: ``` // CS0269b.cs class C { public static void F(out int i) { try { // Assignment occurs, but compiler can't verify it i = 1; } catch { } int k = i; // CS0269 i = 1; } public static void Main() { int myInt; F(out myInt); } } ```
                  <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>

                              哎呀哎呀视频在线观看