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.

23 lines
671 B

3 years ago
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace Apewer.Source
  5. {
  6. /// <summary>表示在执行 Update 时,不包含此属性。</summary>
  7. [Serializable]
  8. [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
  9. public sealed class NoUpdateAttribute : Attribute
  10. {
  11. /// <summary>从 <see cref="NoUpdateAttribute"/> 到 Boolean 的隐式转换,判断 <see cref="NoUpdateAttribute"/> 有效。</summary>
  12. public static implicit operator bool(NoUpdateAttribute instance)
  13. {
  14. if (instance == null) return false;
  15. return true;
  16. }
  17. }
  18. }