I am able to resolve the issue by iterating over the PropertyDescriptorCollection and checking if any item is null, before returning the PropertyDescriptorCollection.
foreach (var item in propertyDescriptorCollection)
{
if (item == null) return null;
}
return propertyDescriptorCollection;
Thanks, Greg

Comment