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
Post a Comment