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
VulpesPosted Mar 16, 2011, 5:22 PM
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, 5:32 PM