VirtualBox

Ticket #9659: Program.cs

File Program.cs, 692 bytes (added by Mihai Hanor, 11 years ago)
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Diagnostics;
6
7namespace ConsoleApplication1
8{
9 public class Dummy
10 {
11 public int myint {get; set;}
12 public Dummy()
13 {
14 myint = 0;
15 }
16 public void EndlessLoop()
17 {
18 while (true)
19 if (myint != 0) // press F9 to set a breakpoint here, then press F5 continuously
20 myint = 0;
21 }
22 }
23 class Program
24 {
25 static void Main(string[] args)
26 {
27 Dummy mydummy = new Dummy();
28 mydummy.EndlessLoop();
29 }
30 }
31}

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy