reflection - How do I get the value of a sibling field in c#? -


class {     public b;     public c; } c func() {     a=new a();     // set fields in private     return a.c; } 

i have object returned func()

c c=func() 

how value of connected field b?

i know can type of b through type.reflectedtype,but don't know how value of b.

i solve myself.

use delegate.target parent object


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -