コード例 #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
ファイル: Schedule.cs プロジェクト: KayRJay/MyFlightbookWeb
 public override int GetHashCode()
 {
     return(StartUtc.GetHashCode() * 17 + EndUtc.GetHashCode() * 23 + ID.GetHashCode() * 13 + ResourceID.GetHashCode() * 19 + Body.GetHashCode() * 29 + OwnerName.GetHashCode() * 7);
 }