Advertisement
Guest User

IL

a guest
Jan 24th, 2017
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .method private hidebysig static void  WaitForAnyKey() cil managed
  2. {
  3.   // Code size       44 (0x2c)
  4.   .maxstack  8
  5.   IL_0000:  call       bool [mscorlib]System.Diagnostics.Debugger::get_IsAttached()
  6.   IL_0005:  brfalse.s  IL_002b
  7.   IL_0007:  br.s       IL_000f
  8.   IL_0009:  call       valuetype [mscorlib]System.ConsoleKeyInfo [mscorlib]System.Console::ReadKey()
  9.   IL_000e:  pop
  10.   IL_000f:  call       bool [mscorlib]System.Console::get_KeyAvailable()
  11.   IL_0014:  brtrue.s   IL_0009
  12.   IL_0016:  ldstr      "Press any key to continue . . . "
  13.   IL_001b:  call       void [mscorlib]System.Console::Write(string)
  14.   IL_0020:  call       valuetype [mscorlib]System.ConsoleKeyInfo [mscorlib]System.Console::ReadKey()
  15.   IL_0025:  pop
  16.   IL_0026:  call       void [mscorlib]System.Console::WriteLine()
  17.   IL_002b:  ret
  18. } // end of method Program::WaitForAnyKey
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement