コード例 #1
0
ファイル: AesV2.cs プロジェクト: Fortnite-API/csharp-wrapper
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Build.GetHashCode();
         hashCode = hashCode * 397 ^ MainKey.GetHashCode();
         hashCode = hashCode * 397 ^ DynamicKeys.GetHashCode();
         hashCode = hashCode * 397 ^ Updated.GetHashCode();
         return(hashCode);
     }
 }
コード例 #2
0
ファイル: AesV2.cs プロジェクト: Fortnite-API/csharp-wrapper
        public bool Equals(AesV2 other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(Build == other.Build && MainKey == other.MainKey && DynamicKeys.Equals(other.DynamicKeys) && Updated.Equals(other.Updated));
        }