C# Reflection: Is it possible to find an instance of an object at runtime?

前端 未结 7 1061
说谎
说谎 2020-12-07 01:53

I\'m wondering if it\'s possible to use reflection to locate an object at runtime? This is more of an experiment than a practical requirement.

I\'ve used the .GetTyp

7条回答
  •  -上瘾入骨i
    2020-12-07 02:48

    Nope this is not possible, because references are implemented privately by Microsoft they are not pointers compared to C/C++, in old C/C++ you could scan your memory but in .NET there are no such tools.

提交回复
热议问题