类中的模糊调用函数

Mix*_*xer 1 c# class function call ambiguous

怎么到处走?我不希望有不同名称的函数.

public class DataRowSafe
{

    public String Get(String Column)
    {
        return String.Empty;
    }

    public int Get(String Column)
    {
        return 0;
    }
}


    DataRowSafe r=new DataRowSafe();
    String res=r.Get("Column1");
    int res2=r.Get("Column2");//<--- Ambiguous call
Run Code Online (Sandbox Code Playgroud)

bas*_*h.d 5

方法的重载需要您的类似命名的方法具有不同的签名.回报值微不足道!在这里看看这个教程.