예제 #1
0
        public override bool Equals(object obj)
        {
            if (this.GetType() != obj.GetType())
            {
                return(false);
            }
            BoolDataStruct b = (BoolDataStruct)obj;

            return(this.bVal == b.bVal && this.born == b.born);
        }
예제 #2
0
        // Clear
        public override void Clear()
        {
            BoolDataStruct old = this.value;

            this.value.BoolVal = false;
            this.value.Born    = false;

            if (old != this.value && IsChangedHandlers())
            {
                OnChanged(this, new ChangedEventsArgs(old, this.value));
            }
        }