The MSDN example shows how to use a DataTable to search for a propertydescriptor. DataTable is redundant when all I have to do is save and forward a short string value.
One example looks somewhat robust, it uses TypeDescriptor.GetProperties (this) ["afieldnameintheclass"]. It looks right to me.
What confuses me is that in a similar example, the [ConnectionProvider ("Web Part Connection Provider")] attribute is used in the public IWebPartField GetWPConnectFieldProvider () function and seems to refer to this in its GetProperties (TypeDescriptor call. GetProperties (this) ["Web Part Connection Provider"]).
Does the correct example look right?
source
share