المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : [SOLVED] IL: What are the contents of arg_0 in a static method? [modified]



C# Programming
02-21-2010, 03:22 AM
Hi everyone. I'm wondering about this and I can't find the answer anywhere: I know in an instance method arg_0 contains the instance the method was called on -- but what (if anything) does it contain in a static method? Would it be the type of the class the method belongs to?

(When I say arg_0 I'm of course talking about MSIL (aka CIL), the intermediate ******** into which C# gets compiled. Arg_0 is the implicit argument, i.e., this in an instance method. What about static methods?)

Thanks. http://www.barakasoft.com/script/Forums/Images/smiley_smile.gifmodified on Friday, February 19, 2010 7:48 AM