更新:2007 年 11 月
错误消息
“accessor”:可访问性修饰符不能在接口中的访问器上使用
当您在接口中的属性或索引器的任何一个访问器上使用访问修饰符时,将出现此错误。若要解决此错误,请移除访问修饰符。
示例
下面的示例生成 CS0275:
// CS0275.cs
public interface MyInterface
{
int Property
{
get;
internal set; // CS0275
}
}