C#错误CS1503

C#错误CS1503,c#,C#,由于错误CS1503,我无法使此代码正常工作 公共异步任务InstallCommand; { client.MessageReceived+=HandleCommand; wait commands.AddModuleAsync(Assembly.GetEntryAssembly); } 在方法声明中,更改到() public异步任务InstallCommand() { client.MessageReceived+=HandleCommand; wait commands.AddModul

由于错误CS1503,我无法使此代码正常工作

公共异步任务InstallCommand;
{
client.MessageReceived+=HandleCommand;
wait commands.AddModuleAsync(Assembly.GetEntryAssembly);
}  

在方法声明中,更改
()

public异步任务InstallCommand()
{
client.MessageReceived+=HandleCommand;
wait commands.AddModuleAsync(Assembly.GetEntryAssembly);
} 

在方法声明中,更改
()

public异步任务InstallCommand()
{
client.MessageReceived+=HandleCommand;
wait commands.AddModuleAsync(Assembly.GetEntryAssembly);
} 

您应该从一些教程开始。。。注意方法声明和字符文字主题。:)投票以打字错误结束此操作。您应该从一些教程开始。。。注意方法声明和字符文字主题。:)投票结束这件事是因为打字错误。