18 lines
500 B
18 lines
500 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Apewer
|
|
{
|
|
|
|
/// <summary></summary>
|
|
[AttributeUsage(AttributeTargets.All, AllowMultiple = false, Inherited = false)]
|
|
public class HiddenAttribute : Attribute
|
|
{
|
|
|
|
/// <summary>从 <see cref="HiddenAttribute"/> 到 Boolean 的隐式转换,判断 <see cref="HiddenAttribute"/> 有效。</summary>
|
|
public static implicit operator bool(HiddenAttribute instance) => instance != null;
|
|
|
|
}
|
|
|
|
}
|
|
|