protected virtual string GetPropertyVisibility(PropertyDefinition property, out string getVisible, out string setVisible) { getVisible = null; setVisible = null; if (DocUtils.IsAvailablePropertyMethod(property.GetMethod)) { getVisible = AppendVisibility(new StringBuilder(), property.GetMethod).ToString(); } if (DocUtils.IsAvailablePropertyMethod(property.SetMethod)) { setVisible = AppendVisibility(new StringBuilder(), property.SetMethod).ToString(); } if (setVisible == null && getVisible == null) { return(null); } StringBuilder buf = new StringBuilder(); if (getVisible != null && (setVisible == null || getVisible == setVisible)) { buf.Append(getVisible); } else if (setVisible != null && getVisible == null) { buf.Append(setVisible); } else { buf.Append("public: "); } return(buf.ToString()); }