Skip to content

Instantly share code, notes, and snippets.

@MartinZikmund
Last active December 8, 2019 21:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MartinZikmund/8319776b7734ae093d798575167ef759 to your computer and use it in GitHub Desktop.
Save MartinZikmund/8319776b7734ae093d798575167ef759 to your computer and use it in GitHub Desktop.
ldloc.0 //loads the local variable at index 0 (which is the array instance) onto stack
ldc.i4.0 //loads the value of 0 onto stack
ldelema Riddle.ValueHolder //loads the address of the array element at index 0 as a managed pointer onto stack
ldc.i4.5 //loads the value of 5 onto stack
call instance void Riddle.ValueHolder::SetValue(int32) //calls the SetValue method on the ValueHolder instance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment