Rea*_*mer 2 .net c# syntax-error
public class test
{
public void xov() { return; }
public string xov() { return null; }
public int xov() { return 0; }
}
public class p
{
public p()
{
test v = new test();
v.xov();// Here i cann't use defined overloads :(
}
}
Run Code Online (Sandbox Code Playgroud)
我可以通过参数重载方法,但为什么我不能通过返回类型重载方法?