Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .method private hidebysig static void WaitForAnyKey() cil managed
- {
- // Code size 44 (0x2c)
- .maxstack 8
- IL_0000: call bool [mscorlib]System.Diagnostics.Debugger::get_IsAttached()
- IL_0005: brfalse.s IL_002b
- IL_0007: br.s IL_000f
- IL_0009: call valuetype [mscorlib]System.ConsoleKeyInfo [mscorlib]System.Console::ReadKey()
- IL_000e: pop
- IL_000f: call bool [mscorlib]System.Console::get_KeyAvailable()
- IL_0014: brtrue.s IL_0009
- IL_0016: ldstr "Press any key to continue . . . "
- IL_001b: call void [mscorlib]System.Console::Write(string)
- IL_0020: call valuetype [mscorlib]System.ConsoleKeyInfo [mscorlib]System.Console::ReadKey()
- IL_0025: pop
- IL_0026: call void [mscorlib]System.Console::WriteLine()
- IL_002b: ret
- } // end of method Program::WaitForAnyKey
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement