Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need a null statement to hang a breakpoint on
Message
 
À
15/08/2006 14:31:36
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01144613
Message ID:
01146541
Vues:
20
Hi David,

>I guess I need to revert this issue to open.

It doesn't get any more readable, though:
#pragma warning disable 164
int t = 0;
for (int i = 0; i < 10; i++)
{
  t++;
  _:;
}
Console.Write(t);
"_:;" is an empty statement in C# (well, actually it's a label without any code following it). You can set a breakpoint on this line. However, to avoid the warning that you have got an unused label, you also need the #pragma line at the top of the source code file.
--
Christof
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform