title: Dynamically parsing through nested classes for values and attributes
body: <p>I have several models that includes nested classes and lists. Many of the class members have attributes that I also have to read in.</p>
  
  <p>I'm looking for a dynamic way (possibly through Linq or Reflection) to retrieve the values and attributes of all generic objects within the specified model.</p>
  
  <p>Any suggestions are welcome.</p>
  
  <p>Edit:</p>
  
  <p>Using the ObjectManager as per x0r's suggestion, I can see all of the data. The remaining part of this issue requires member annotation. Is there some way to copy over the PropertyInfo of each class member?</p>
  
  <pre><code>ObjectWalker objectWalker = new ObjectWalker(objectToValidate);
  
  foreach (Object o in objectWalker)
  {
      if (isGeneric(o.GetType()))
      {    
          PropertyInfo property = o.GetType().GetProperty(o); // &lt;-- This does not work... Need to obtain annotations somehow
          object[] Attributes = property.GetCustomAttributes(typeof(Attribute), true);
  
          foreach (Attribute attribute in Attributes)
          {
              // Annotations processing goes here
          }
      }
  }
  </code></pre>