My example has a mistake I believe:

*var className = child.Attributes["ClassName"].Value;
PropertyInfo pi = typeof(Book).GetProperty(className);
if (pi.GetValue(myBook, null) != null)*

in my GetValue call I should be referring to my instance of the object, not 
the name of the Book class.

Reply via email to