Exemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(ResourceID.GetHashCode() * 397);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Serves as a hash function for a particular type.
 /// </summary>
 /// <returns>
 /// A hash code for the current <see cref="T:System.Object"/>.
 /// </returns>
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (int)WorkSurfaceContext;
         hashCode = (hashCode * 397) ^ ServerID.GetHashCode();
         hashCode = (hashCode * 397) ^ ResourceID.GetHashCode();
         hashCode = (hashCode * 397) ^ EnvironmentID.GetHashCode();
         return(hashCode);
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// GetHashCode
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     unchecked
     {
         int result = 17;
         result = result * 23 + ResourceID.GetHashCode();
         result = result * 23 + ((Value != null) ? Value.GetHashCode() : 0);
         result = result * 23 + ((Name != null) ? Name.GetHashCode() : 0);
         return(result);
     }
 }
Exemplo n.º 4
0
 public override int GetHashCode()
 {
     return(StartUtc.GetHashCode() * 17 + EndUtc.GetHashCode() * 23 + ID.GetHashCode() * 13 + ResourceID.GetHashCode() * 19 + Body.GetHashCode() * 29 + OwnerName.GetHashCode() * 7);
 }