共用方式為


編譯器錯誤 CS0527

更新:2007 年 11 月

錯誤訊息

介面清單中的型別 'type' 不是介面

結構介面可繼承自另一個介面,但是不能繼承自任何其他型別。

下列範例會產生 CS0527:

// CS0527.cs
// compile with: /target:library
public struct clx : int {}   // CS0527 int not an interface