[英]How to access the instance variable value from the diffrrent class in C#
[英]Is there a way to access the address of instance variable of any class in C#?
我如何在C#中訪問任何類的實例的地址?否則,是否有相同的實用程序?
myClass obj = new myClass();
TypedReference tr = __makeref(obj);
IntPtr ptr = **(IntPtr**)(&tr);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.