.net - infinite loop example with minimum code in c# -


can give me infinite loop example on c# minimum code? came thought there more easier way.

the typical examples , while loops. example

for(;;) {} 

and

while(true) {} 

however, looping construct without break or terminating condition loop infinitely. different developers have different opinions on style best. additionally, context may sway method choose.

hth


Comments

Popular posts from this blog

haskell - Using filter on an item in a list? -

c# - When does PreApplicationStartMethod actually get triggered to run? -

tomcat6 - Exception when stopping container for a with Spring + Quartz + Tomcat web application -