共用方式為


編譯器錯誤 C3353

'delegate':只能從全域函式或 Managed 或 WinRT 類型的成員函式建立委派

使用 delegate 關鍵詞宣告的 委派 只能在全域範圍宣告。

下列範例會產生 C3353:

// C3353.cpp
// compile with: /clr
delegate int f;   // C3353