Exemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = Name?.GetHashCode() ?? 0;
         result = (result * 397) ^ IsRemote.GetHashCode();
         result = (result * 397) ^ IsCurrent.GetHashCode();
         return(result);
     }
 }
Exemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = (Name != null ? Name.GetHashCode() : 0);
         result = (result * 397) ^ IsRemote.GetHashCode();
         result = (result * 397) ^ IsCurrent.GetHashCode();
         return(result);
     }
 }