Carnac.Logic/NotifyProperty.cs

(完整代码) 910B

using System;

namespace Carnac.Logic
{

    /// <summary>
    /// Enables property notification.
    /// </summary>
    [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
    public class NotifyPropertyAttribute : Attribute
    {
        /// <summary>
        /// <b>true</b> to perform an equality check before firing property notification; otherwise <b>false</b>.
        /// </summary>
        /// <remarks>Defaults to <b>false</b>.</remarks>
        public bool PerformEqualityCheck { get; set; }

        /// <summary>
        /// The names of other properties to perform notification for.
        /// </summary>
        public string[] AlsoNotifyFor { get; set; }

        /// <summary>
        /// Gets the object's changed status.
        /// </summary>
        public bool SetIsChanged { get; set; }
    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。