コード例 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Value != null ? Value.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ IsEncrypted.GetHashCode();
         hashCode = (hashCode * 397) ^ ExpiresAt.GetHashCode();
         return(hashCode);
     }
 }
コード例 #2
0
 public override int GetHashCode() => GetPropertyHashCode(Name) ^ GetPropertyHashCode(Value) ^ IsEncrypted.GetHashCode();