Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            var hashCode = 1537752341;

            hashCode = hashCode * -1521134295 + BillCode.GetHashCode();
            hashCode = hashCode * -1521134295 + LeaseId.GetHashCode();
            hashCode = hashCode * -1521134295 + AmountOffset.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Reason);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(DocumentRef);

            return(hashCode);
        }
Ejemplo n.º 2
0
 public override byte[] GetBody()
 {
     using (var stream = new MemoryStream())
         using (var writer = new BinaryWriter(stream))
         {
             writer.Write(TransactionType.LeaseCancel);
             writer.Write(SenderPublicKey);
             writer.WriteLong(Assets.ZBS.AmountToLong(Fee));
             writer.WriteLong(Timestamp.ToLong());
             writer.Write(LeaseId.FromBase58());
             return(stream.ToArray());
         }
 }
Ejemplo n.º 3
0
 public override int GetHashCode() => LeaseId.GetHashCode();