Method calling convention with value types RRS feed

  • Question

  • Hi,

    I have a basic doubt with the method calling convention of value types. If Iam right, when a method is called for a instance of the reference type, then the object uses the method pointer to go the appropriate method to execute it's code. But in the case of valuetype say struct, each instance is a allocated in the stack. Also the instance does not have amethod pointer and Sync block section present.

    So if a non virtual method is called on a value type, then how will the CLR call the approprite method as there is no method pointer associated with the instance of the value type.

    Please clarify





    Thursday, October 19, 2006 9:47 AM