/// <summary> /// Returns true if PolicySubmit instances are equal /// </summary> /// <param name="other">Instance of PolicySubmit to be compared</param> /// <returns>Boolean</returns> public bool Equals(PolicySubmit other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Value1 == other.Value1 || Value1 != null && Value1.Equals(other.Value1) ) && ( Value2 == other.Value2 || Value2 != null && Value2.Equals(other.Value2) ) && ( Value3 == other.Value3 || Value3 != null && Value3.Equals(other.Value3) )); }
private void SampleCommandExecute(string digit) { if (Operator == OperatorType.NONE) { if (Value1 != null && Value1.Equals("0")) { Value1 = digit; } else { Value1 += digit; } } else { if (Value2 != null && Value2.Equals("0")) { Value2 = digit; } else { Value2 += digit; } } }
public bool Equals(AreaSpriteCommand other) { return(!Size.Equals(other.Size) ? false : !Value1.Equals(other.Value1) || Value2.Equals(other.Value2) ? false : Size == 2 || Value3.Equals(other.Value3)); }
public bool Equals(AreaObjectCommand other) { return(!Size.Equals(other.Size) ? false : !Value1.Equals(other.Value1) || !Value2.Equals(other.Value2) ? false : Size == 3 ? Value3.Equals(other.Value3) : true); }
protected bool Equals(TestEntityWithAllTypes other) { return (Id == other.Id && Value1.Equals(other.Value1) && Value2.Equals(other.Value2) && Value3.Equals(other.Value3) && Value4.Equals(other.Value4) && Value5.Equals(other.Value5) && Value6.Equals(other.Value6) && Value7.Equals(other.Value7) && Value8.Equals(other.Value8) && Value9.Equals(other.Value9) && Value10.Equals(other.Value10) && Value12.IsEquals(other.Value12) && string.Equals(Value14, other.Value14) && Value15.Equals(other.Value15)); }
/// <summary> /// Returns true if Policy instances are equal /// </summary> /// <param name="other">Instance of Policy to be compared</param> /// <returns>Boolean</returns> public bool Equals(Policy other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Uuid == other.Uuid || Uuid != null && Uuid.Equals(other.Uuid) ) && ( Name == other.Name || Name != null && Name.Equals(other.Name) ) && ( Description == other.Description || Description != null && Description.Equals(other.Description) ) && ( Value1 == other.Value1 || Value1 != null && Value1.Equals(other.Value1) ) && ( Value2 == other.Value2 || Value2 != null && Value2.Equals(other.Value2) ) && ( Value3 == other.Value3 || Value3 != null && Value3.Equals(other.Value3) )); }
public bool MatchesSearchTerm(string term) { return(Value2.Equals(term, StringComparer.OrdinalIgnoreCase)); }
public override bool Execute() { return(Value2.Equals(Value1)); }
public bool Equals(AreaObjectCommand other) { return(Value1.Equals(other.Value1) && Value2.Equals(other.Value2)); }