0
我是C#初学者,我做了一个测验。我的问题是,当问一个问题,应该做一个循环,以便可以问第二个问题。我有想法使用转到或返回到开头,但我有几个点击事件。回到几个事件的代码的开始?
下面是一个例子:
private void Event1
{
//do something..
}
private void Event2
{
//do other things
}
private void Event3
{
//Here I want to return to the event 1 to make a loop
}
这可能吗?
如果没有其他解决方案?
你应该再次像'Event1()'那样调用它。 – dotctor
你可以直接调用它:'Event1();' – lwb
我可以在事件3中调用它? – DanyDC