/// <summary> /// Compares for reference AND value equality. /// </summary> /// <param name="obj">The object to compare with this instance.</param> /// <returns> /// <c>true</c> if both operands are equal; otherwise, <c>false</c>. /// </returns> public bool Equals(DirectedEnergyDamage obj) { bool ivarsEqual = true; if (obj.GetType() != this.GetType()) { return(false); } if (this._recordType != obj._recordType) { ivarsEqual = false; } if (this._recordLength != obj._recordLength) { ivarsEqual = false; } if (this._padding != obj._padding) { ivarsEqual = false; } if (!this._damageLocation.Equals(obj._damageLocation)) { ivarsEqual = false; } if (this._damageDiameter != obj._damageDiameter) { ivarsEqual = false; } if (this._temperature != obj._temperature) { ivarsEqual = false; } if (this._componentIdentification != obj._componentIdentification) { ivarsEqual = false; } if (this._componentDamageStatus != obj._componentDamageStatus) { ivarsEqual = false; } if (this._componentVisualDamageStatus != obj._componentVisualDamageStatus) { ivarsEqual = false; } if (this._componentVisualSmokeColor != obj._componentVisualSmokeColor) { ivarsEqual = false; } if (!this._fireEventID.Equals(obj._fireEventID)) { ivarsEqual = false; } if (this._padding2 != obj._padding2) { ivarsEqual = false; } return(ivarsEqual); }
/// <summary> /// Compares for reference AND value equality. /// </summary> /// <param name="obj">The object to compare with this instance.</param> /// <returns> /// <c>true</c> if both operands are equal; otherwise, <c>false</c>. /// </returns> public bool Equals(DirectedEnergyDamage obj) { bool ivarsEqual = true; if (obj.GetType() != this.GetType()) { return false; } if (this._recordType != obj._recordType) { ivarsEqual = false; } if (this._recordLength != obj._recordLength) { ivarsEqual = false; } if (this._padding != obj._padding) { ivarsEqual = false; } if (!this._damageLocation.Equals(obj._damageLocation)) { ivarsEqual = false; } if (this._damageDiameter != obj._damageDiameter) { ivarsEqual = false; } if (this._temperature != obj._temperature) { ivarsEqual = false; } if (this._componentIdentification != obj._componentIdentification) { ivarsEqual = false; } if (this._componentDamageStatus != obj._componentDamageStatus) { ivarsEqual = false; } if (this._componentVisualDamageStatus != obj._componentVisualDamageStatus) { ivarsEqual = false; } if (this._componentVisualSmokeColor != obj._componentVisualSmokeColor) { ivarsEqual = false; } if (!this._fireEventID.Equals(obj._fireEventID)) { ivarsEqual = false; } if (this._padding2 != obj._padding2) { ivarsEqual = false; } return ivarsEqual; }