| 1 | using System;
|
|---|
| 2 | using System.Collections.Generic;
|
|---|
| 3 | using System.Linq;
|
|---|
| 4 | using System.Text;
|
|---|
| 5 | using System.Diagnostics;
|
|---|
| 6 |
|
|---|
| 7 | namespace 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 | }
|
|---|