use*_*870 1 c# delegates properties
class MyClass
{
**private** delegate void MyDelegate(); //error: MyDelegate is less accessible than property Del
private MyDelegate del;
public MyDelegate Del
{
get { return this.del; }
set { this.del = value; }
}
}
Run Code Online (Sandbox Code Playgroud)
改为公开修复,但我想更详细地了解原因.