Autor Beitrag
Christoph1972
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 690
Erhaltene Danke: 16


VS2015 Pro / C# & VB.Net
BeitragVerfasst: Do 11.12.08 23:35 
Hallo zusammen,


in VB.Net gibt es, Exit For - While - Function und Sub, wobei Exit Sub & Fubction dem return in C# entspricht. Gibt es da was für C#? Ich möchte das nur eine Schleife verlassen wird, nicht aber gleich die ganze Fubktion z.B.?


Gruß
Christoph
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Do 11.12.08 23:37 
break verlässt eine Schleife, continue beendet die aktuelle Iteration und geht zur nächsten über.

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
Christoph1972 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 690
Erhaltene Danke: 16


VS2015 Pro / C# & VB.Net
BeitragVerfasst: Fr 12.12.08 07:46 
Ah ja super! Vielen Dank!


Gruß
Christoph