Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Label != null ? Label.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Icon != null ? Icon.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ DisplayLabel.GetHashCode();
         hashCode = (hashCode * 397) ^ LabelStacked.GetHashCode();
         hashCode = (hashCode * 397) ^ DisplayIcon.GetHashCode();
         hashCode = (hashCode * 397) ^ IconStacked.GetHashCode();
         hashCode = (hashCode * 397) ^ Required.GetHashCode();
         hashCode = (hashCode * 397) ^ IsStart.GetHashCode();
         hashCode = (hashCode * 397) ^ (Value != null ? Value.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ NotVisible.GetHashCode();
         hashCode = (hashCode * 397) ^ NotEnabled.GetHashCode();
         hashCode = (hashCode * 397) ^ (ErrorMsg != null ? ErrorMsg.GetHashCode() : 0);
         return(hashCode);
     }
 }
Ejemplo n.º 2
0
 public override int GetHashCode()
 {
     return(Parent == null?DisplayLabel.GetHashCode() : DisplayLabel.GetHashCode() ^ Parent.GetHashCode());
 }