You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
545 B

3 years ago
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace Apewer
  5. {
  6. /// <summary>实验性的。</summary>
  7. [AttributeUsage(AttributeTargets.All, AllowMultiple = false, Inherited = true)]
  8. public sealed class ExperimentalAttribute : Attribute
  9. {
  10. /// <summary>从 <see cref="ExperimentalAttribute"/> 到 Boolean 的隐式转换,判断 <see cref="ExperimentalAttribute"/> 有效。</summary>
  11. public static implicit operator bool(ExperimentalAttribute instance) => instance != null;
  12. }
  13. }