示例#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));
            }
        }