title: Is there a way to get the parent (hosting object) from the constructor of the other?
body: <p>Basically lets say I have a class A that has a member of class B. Is it possible using reflection to get the instance of A (if any) that is creating the instance of B from within the constructor in B?</p>
  
  <pre><code>class A
  {
      private B b = new B();
  }
  
  class B
  {
      public B()
      {
          // How could I get the instance of A (object), if any, that is creating me?
      }
  }
  </code></pre>
  
  <p>Guys, my ultimate goal is to create a generic bindable property class that is able to locate its parent's PropertyChanged interface (if implemented) to automatically notify properties. Say I have a class called MyBindableProp that is used in classes that implements the INotifyPropertyChanged interface. What I want is to hook to that automatically by declaring the property simply as MyBindableProp { get; set; }. If I can locate the hosting object I know how to do the rest. Passing that in the constructor is off the table.</p>