Skip to content

Commit c61d2a5

Browse files
committed
Removed IsHidden
This wasn't actually adding any value, and was causing a conflict with reflection (since it exists on both `AttributeDescriptor` and `Attribute`). Removed.
1 parent 32f9322 commit c61d2a5

1 file changed

Lines changed: 0 additions & 27 deletions

File tree

Ignia.Topics/AttributeDescriptor.cs

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -197,33 +197,6 @@ public string GetConfigurationValue(string key, string defaultValue = null) {
197197
return defaultValue;
198198
}
199199

200-
/*==========================================================================================================================
201-
| PROPERTY: IS HIDDEN?
202-
\-------------------------------------------------------------------------------------------------------------------------*/
203-
/// <summary>
204-
/// Gets or sets whether the attribute should be hidden in the editor.
205-
/// </summary>
206-
/// <remarks>
207-
/// <para>
208-
/// By default, all attributes associated with a <see cref="ContentTypeDescriptor"/> are rendered in the editor.
209-
/// Optionally, however, attributes can be set to be hidden. This is particularly advantageous when subtyping a Content
210-
/// Type Descriptor, as some parent attributes may not be necessary for child content types (e.g., they may be
211-
/// implicitly assigned). It c be valuable for attributes that are intended to be managed by the system, and not via the
212-
/// editor (e.g., a timestamp or version).
213-
/// </para>
214-
/// <para>
215-
/// The <see cref="IsHidden"/> property does not hide the attribute from the library itself or the views. If the view
216-
/// associated with the <see cref="Topic.View"/> property renders the attribute (e.g., via <see
217-
/// cref="AttributeValueCollection.GetValue(String, Boolean)"/>) then the attribute will be displayed on the page. The
218-
/// <see cref="IsHidden"/> property is used exclusively by the editor.
219-
/// </para>
220-
/// </remarks>
221-
[AttributeSetter]
222-
public new bool IsHidden {
223-
get => Attributes.GetBoolean("IsHidden", false);
224-
set => SetAttributeValue("IsHidden", value? "1" : "0");
225-
}
226-
227200
/*==========================================================================================================================
228201
| PROPERTY: IS REQUIRED?
229202
\-------------------------------------------------------------------------------------------------------------------------*/

0 commit comments

Comments
 (0)