Last active
July 29, 2016 08:24
-
-
Save rogeralsing/a7d05ee9b0cf71ef28e7f18d3d4d4898 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string method (self,stream,session) | |
{ | |
newobj ctor //create POCO stack 1 | |
stloc_0 //store var0 (object) stack 0 | |
ldloc_0 //load var0 stack 1 | |
castclass poco //cast to POCO stack 1 | |
ldarg_0 //load this stack 2 | |
ldfld stringserializer //load stringserializer stack 2 | |
ldarg_1 //load stream stack 3 | |
ldarg_2 //load session stack 4 | |
emitcall Call ReadObject //call stringserializer.ReadObject(stream,session) stack 2 (poco + read obj) //this returns object | |
castclass string //cast res to string stack 2 | |
stfld stringprop //store in poco.stringprop stack 0 | |
ldloc_0 //load var0 stack 1 | |
ret //ret | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment