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); }
// 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)); } }