public override int GetHashCode() { unchecked { return(ResourceID.GetHashCode() * 397); } }
/// <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); } }
/// <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); } }
public override int GetHashCode() { return(StartUtc.GetHashCode() * 17 + EndUtc.GetHashCode() * 23 + ID.GetHashCode() * 13 + ResourceID.GetHashCode() * 19 + Body.GetHashCode() * 29 + OwnerName.GetHashCode() * 7); }