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

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

testing - Detect whether test has failed within fixture -

android - Create single AAR file from multiple modules using Gradle -