using System;
namespace Oqtane.Documentation
{
///
/// This attribute marks classes, methods, etc. as private APIs
/// So they should _not_ be publicly documented.
/// By default, all APIs are private, so you only need this attribute on children of classes marked with `[PublicApi]`.
///
[AttributeUsage(AttributeTargets.All, AllowMultiple = true, Inherited = false)]
[PublicApi]
public class PrivateApi: Attribute
{
///
/// The `[PrivateApi]` attribute can be used without additional comment.
///
// Important note - this constructor looks unnecessary, because comment could be optional in the other constructor
// but we need it because of a minor issue in docfx
public PrivateApi() { }
///
/// Constructor with optional comment `[PrivateApi(some-comment)]`.
///
/// Reason why it's private, optional
public PrivateApi(string comment) { }
}
}