Autor Beitrag
BCT1
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 36



BeitragVerfasst: Di 20.07.10 17:06 
Hi, ich hab ein problem mit sprungmarken. Ich hab ne menge code und will wenn ein Ereignis eintritt bis ans ende des codes springen. Das mache ich so:
ausblenden C#-Quelltext
1:
2:
3:
4:
5:
6:
7:
private void Methode()
{
// Code
goto end;
// Hier steht noch mehr code
end:
}

Der jump-Befehl funktioniert wenn man nicht ans Ende der Methode springt. Ich möchte aber ans Ende springen. Muss man da noch code am ende schriben, damits funktioniert?

-BCT1

Moderiert von user profile iconChristian S.: Quote- durch C#-Tags ersetzt
Yogu
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2598
Erhaltene Danke: 156

Ubuntu 13.04, Win 7
C# (VS 2013)
BeitragVerfasst: Di 20.07.10 17:29 
user profile iconBCT1 hat folgendes geschrieben Zum zitierten Posting springen:
Hi, ich hab ein problem mit sprungmarken.

Das haben Sprungmarken so an sich, deswegen verwendet man die normalerweise auch nicht ;)

user profile iconBCT1 hat folgendes geschrieben Zum zitierten Posting springen:
Ich hab ne menge code und will wenn ein Ereignis eintritt bis ans ende des codes springen.

Mach es doch so:

ausblenden C#-Quelltext
1:
return;					

:idea:

Grüße,
Yogu

Für diesen Beitrag haben gedankt: BCT1
BCT1 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 36



BeitragVerfasst: Di 20.07.10 18:00 
Jo super funktioniert!
Danke