示例#1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(ResourceID.GetHashCode() * 397);
     }
 }
示例#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);
     }
 }
示例#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);
     }
 }
示例#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);
 }