public override string GetPropertyTextValue(object value) { try { if (value is null && _mergedDescriptor.GetValue(_objects, out bool allEqual) is null && !allEqual) { return(string.Empty); } } catch { return(string.Empty); } return(base.GetPropertyTextValue(value)); }
/// <include file='doc\MultiSelectPropertyGridEntry.uex' path='docs/doc[@for="MultiSelectPropertyGridEntry.GetPropertyTextValue"]/*' /> /// <devdoc> /// Returns the text value of this property. /// </devdoc> public override string GetPropertyTextValue(object value) { bool allEqual = true; try{ if (value == null && mergedPd.GetValue(objs, out allEqual) == null) { if (!allEqual) { return(""); } } } catch { return(""); } return(base.GetPropertyTextValue(value)); }