コード例 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((FacebookUserId.GetHashCode() * 397) ^ (SteamUserId != null ? SteamUserId.GetHashCode() : 0));
     }
 }
コード例 #2
0
 /// <summary>
 /// Returns a hash code for this instance.
 /// </summary>
 /// <returns>
 /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
 /// </returns>
 public override int GetHashCode()
 {
     unchecked
     {
         int result = (SteamUserId != null ? SteamUserId.GetHashCode() : 0);
         result = (result * 397) ^ Closed.GetHashCode();
         result = (result * 397) ^ (Achievement != null ? Achievement.GetHashCode() : 0);
         result = (result * 397) ^ Date.GetHashCode();
         return(result);
     }
 }
コード例 #3
0
 /// <summary>
 /// Returns a hash code for this instance.
 /// </summary>
 /// <returns>
 /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
 /// </returns>
 public override int GetHashCode()
 {
     unchecked
     {
         int result = (SteamUserId != null ? SteamUserId.GetHashCode() : 0);
         result = (result * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         result = (result * 397) ^ (Description != null ? Description.GetHashCode() : 0);
         result = (result * 397) ^ (ImageUrl != null ? ImageUrl.GetHashCode() : 0);
         result = (result * 397) ^ Closed.GetHashCode();
         /*result = (result*397) ^ (Game != null ? Game.GetHashCode() : 0);*/
         result = (result * 397) ^ Date.GetHashCode();
         return(result);
     }
 }
 public SteamUser(CSteamID id, string name)
 {
     mId   = new SteamUserId(id);
     mName = name;
 }