On 24/03/2011 10:33 AM, Sandro Magi wrote: > The problem with your solution is that I don't think it's CLI safe > unless the VM is running under "full trust". I believe the VM will > prevent you from accessing the private fields of another object since > this code is not verifiable (unless all fields are public?).
Your only solution here is to mark these fields "internal", and any fields that may be captured as a ref provide an InnerReference overload bundled with the assembly. This is in the safe subset. Then again if you're doing this analysis already you have enough information for my solution, which is probably more efficient, ie. indirect memory references for ML refs are probably more efficient than branch mispredicts due to virtual dispatch. Sandro _______________________________________________ bitc-dev mailing list [email protected] http://www.coyotos.org/mailman/listinfo/bitc-dev
