System.ComponentModel and using System.Reflection

  • Thread starter Thread starter Joe
  • Start date Start date
J

Joe

Any good books or web site that really dig into these topics?

I did a search at Amazon and did not find anything.

I am specifically look at ways to really leverage the property grid, and so
far I have found some helpful samples on the web,
but nothing really gets into the 'whys' very well. In many cases I have
seen different ways to accomplish the same thing, which tells me the authors
were taking more of a hit and miss approach as opposed to having an
understanding of the architecture.

The MSDN docs are very limited in descriptions.
 
My question is how it all works? that is my point.

example;
What is the mechanism the collection editor uses to determine what type of
object to add to a collection?
apparent answer: the default or specified editor's CreateInstance method.
This creates the correct object, but it does not edit it properly in the
collection editor.
why that is wrong (or at least not the only answer): Using a collection
property descriptor, you can use the ComponentType property as well, but
using this requires collection inheritance.

So what is the exact sequence of methods that happen when I click Add?

How can I change the behavior for a collection class I didn't write and can
not easily inherit? What other options exist?

There are soo many component model classes that seem to be tied together,
but I have yet to see anything that really explains what does what and when.
I probably just haven't looked in the right place, and that's what I was
asking for - a place to go read a while.

joe
 
Back
Top