我有两个具有相同名称和相同参数类型的方法.我想重载那些,但它不起作用,因为我收到此错误:
"<Class-name> already defines a member called 'ChangeProfileInformation'
with the same parameter types"
Run Code Online (Sandbox Code Playgroud)
我有这样的事情:
public void ChangeProfileInformation(User user)
{
a
b
}
public void ChangeProfileInformation(User user)
{
a
c
d
}
Run Code Online (Sandbox Code Playgroud)
有谁知道为什么这不起作用?
提前致谢!
| 归档时间: |
|
| 查看次数: |
13041 次 |
| 最近记录: |