.NET
•  Greatis •  Security •  AppDatabase •  Utilities •  Delphi/CB • Visual Basic •  just4fun
.NET Software
.NET Components for Visual Studio .NET, Delphi 8, Delphi 2005 and Delphi 2006
 .NET     Entire site
More Info
Delphi to C#
Index

.NET
Form Designer .NET

See also
Delphi VCL software
Visual Basic 6 software
Hot Offer

Form Desigber .Net


  Delphi  

       Break procedure immediately stops any loop execution and continues at the next statement following the loop statement:
for i:=1 to 100 do
begin
  // some code here
  if i=SomeMaxValue then Break;
end;
 
 
  C#

Like in Delphi, break used within cycle code immediately stops any loop execution and continues at the next statement following the loop statement:
for (int i = 1; i <= 100; i++) 
{
  if (i == SomeMaxValue) break;
  ...
}
Also break use for exit from switch:
switch(n) 
{
  case 1:
  ...
  break;
}

Lost features     
Added features
Warnings Remember about break in switch.
Additional information

 
 


Greatis Software Greatis | Security | AppDatabase | Utilities | Delphi/CB | Visual Basic | .NET | just4fun

Contacts | Add to Favorites | Recommend to a Friend | Privacy Policy | Copyright © 1998-2009 Greatis Software

eXTReMe Tracker