public bool Equals(DestinyBreakerTypeDefinition input) { if (input == null) { return(false); } return (( DisplayProperties == input.DisplayProperties || (DisplayProperties != null && DisplayProperties.Equals(input.DisplayProperties)) ) && ( EnumValue == input.EnumValue || (EnumValue != null && EnumValue.Equals(input.EnumValue)) ) && ( Hash == input.Hash || (Hash.Equals(input.Hash)) ) && ( Index == input.Index || (Index.Equals(input.Index)) ) && ( Redacted == input.Redacted || (Redacted != null && Redacted.Equals(input.Redacted)) )); }
public override bool Equals(object obj) { if (obj == null) { return(false); } return(EnumValue.Equals((int)obj)); }
static void CheckImplicit(EnumValue <Greek> value, Greek expected) { Assert.Equal(expected, value); Assert.True(value == expected); Assert.True(value.Equals(expected)); Assert.True(value == new EnumValueCaseIgnored <Greek>(expected)); Assert.False(value != expected); Assert.False(value != new EnumValueCaseIgnored <Greek>(expected)); }
/// <summary> /// EnumPropertyEditor 和其它地方中使用了这个方法来对比实体。 /// </summary> /// <param name="obj"></param> /// <returns></returns> public override bool Equals(object obj) { if (obj is EnumViewModel) { return(EnumValue.Equals((obj as EnumViewModel).EnumValue)); } else { return(false); } }
public bool Equals(DestinyEnergyTypeDefinition input) { if (input == null) { return(false); } return (( DisplayProperties == input.DisplayProperties || (DisplayProperties != null && DisplayProperties.Equals(input.DisplayProperties)) ) && ( TransparentIconPath == input.TransparentIconPath || (TransparentIconPath != null && TransparentIconPath.Equals(input.TransparentIconPath)) ) && ( ShowIcon == input.ShowIcon || (ShowIcon != null && ShowIcon.Equals(input.ShowIcon)) ) && ( EnumValue == input.EnumValue || (EnumValue != null && EnumValue.Equals(input.EnumValue)) ) && ( CapacityStatHash == input.CapacityStatHash || (CapacityStatHash.Equals(input.CapacityStatHash)) ) && ( CostStatHash == input.CostStatHash || (CostStatHash.Equals(input.CostStatHash)) ) && ( Hash == input.Hash || (Hash.Equals(input.Hash)) ) && ( Index == input.Index || (Index.Equals(input.Index)) ) && ( Redacted == input.Redacted || (Redacted != null && Redacted.Equals(input.Redacted)) )); }
public bool Equals(EnumOption other) { return(EnumValue.Equals(other.EnumValue) && UnderlyingValue.Equals(other.UnderlyingValue)); }