Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old September 29th, 2006, 02:45 AM
Registered User
Join Date: Sep 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jtpopol Send a message via Yahoo to jtpopol
Default c# feature request?


how does someone give control to an outermost loop from an inner loop using break or continue? i've digged up on c# manual but it seems they don't support it like java. i would be glad if someone would give me a work-around in a structured way..

the problem:

for(int y=height; y > 0;y--)
  for(int x=0; x < width;x++){
      for(int x1=circle.Center.X - 4; x1 > 0;x1--){
        for(int y1=0;y1 < circle.Center.Y - 4;y1++){
           return true;
          //here i want to transfer the control to someLabel
in java, we could do a
continue someLabel;
break someLabel;
could someone help with achieving this in c# without much hassle?

thanks a lot.

Similar Threads
Thread Thread Starter Forum Replies Last Post
request forwarging & request redirection hafizmuhammadmushtaq Servlets 2 April 24th, 2008 12:42 AM
Mail Block Feature Request Imar Forum and Wrox.com Feedback 2 May 27th, 2004 01:58 AM
New Feature Request Ben Horne Forum and Wrox.com Feedback 12 April 28th, 2004 02:37 PM
Another Feature Request Imar Forum and Wrox.com Feedback 0 September 10th, 2003 01:57 PM
Feature Request Imar Forum and Wrox.com Feedback 9 September 2nd, 2003 08:24 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.