共用方式為


編譯器錯誤 CS0811

更新:2007 年 11 月

錯誤訊息

'name' 的完整限定名稱對偵錯資訊而言太長。進行編譯但不使用 '/debug' 選項。

偵錯資訊中的變數和型別名稱有其大小條件約束 (Constraint)。

若要更正這個錯誤

  • 如果無法修改名稱,則唯一的替代方式是在不使用 /debug 選項的情況下進行編譯。

範例

下列程式碼會產生 CS0811:

// cs0811.cs
//Compile with: /debug
using System;
using System.Collections.Generic;

namespace TestNamespace
{
    using Long = List<List<List<List<List<List<List<List<List<List<List<List<List
   <List<List<List<List<List<List<List<List<List<List<List<List<List<List<List<int>>>>>>>>>>>>>>>>>>>>>>>>>>>>; // CS0811

    class Test
    {
        static int Main()
        {
            return 1;
        }
    }
}