[MWF] Fix PropertyGridTest.PropertyGrid_ArrayParentTest by returning the correct...
commitbb100049e1e1d8b245111a5d01ae158ec6b867e2
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Fri, 12 Dec 2014 00:50:43 +0000 (12 01:50 +0100)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Fri, 12 Dec 2014 01:39:02 +0000 (12 02:39 +0100)
tree528bef1c344228eace83caea96e1638ca96b6ffa
parent0146e5c7516e81b38c32e0af55728cca2ccf0bb6
[MWF] Fix PropertyGridTest.PropertyGrid_ArrayParentTest by returning the correct value of PropertyCategoryDefault

The code in ComponentModel (https://github.com/mono/referencesource/blob/7dc4e513eafd3fb30d34111948ef14c981264463/System/compmod/system/componentmodel/CategoryAttribute.cs#L276) looks up the category name by string concatenation, which means it wasn't captured in our SR.cs.
We also can't add the correct value for PropertyCategoryDefault as a string constant to SR.cs since the value is retrieved via GetObject () and we currently just return the parameter name there.

A short-term workaround is to just special case PropertyCategoryDefault in GetObject ().
mcs/class/System/ReferenceSources/SR.cs