What exactly does the following mean?
PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(button1);
I have an idea but wouldn't mind an explanation please, the bit that's throwing me is the fact that the class PropertyDescriptorCollection is assigned, binded, set to a new class altogether being TypeDescriptor. I didn't think this was possible without a cast?
Cheers

VulpesRank #55 · 29.2K reputationPosted Mar 16, 2011, 1:22 PM EDT
When a reference to this collection is assigned to the PropertyDescriptorCollection variable, properties, no cast is needed because this is the exact type returned by the method.
Posted Mar 16, 2011, 1:32 PM EDT