Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

how to get an object which contain an specific class object. reflect

$
0
0

for example. I have an class B instance object B1.

there is another struct c's  class B property also is reference B1.  such as c.Bproperty = B1. And another struct d's  class  B property also is reference B1  Now, I get the object B1, and I want to get which struct instance has property reference the B1, what should I do? I think I can use reflect.

thank you


Viewing all articles
Browse latest Browse all 1710

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>