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))
                 ));
        }
Esempio n. 2
0
 public override bool Equals(object obj)
 {
     if (obj == null)
     {
         return(false);
     }
     return(EnumValue.Equals((int)obj));
 }
Esempio n. 3
0
 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));
 }
Esempio n. 4
0
 /// <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);
     }
 }
Esempio n. 5
0
        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))
                 ));
        }
Esempio n. 6
0
 public bool Equals(EnumOption other)
 {
     return(EnumValue.Equals(other.EnumValue) && UnderlyingValue.Equals(other.UnderlyingValue));
 }