示例#1
0
 /// <summary>
 /// Creates a new object that is a copy of the current instance.
 /// </summary>
 /// <returns>A new object that is a copy of this instance.</returns>
 public RSASecretExchange Clone()
 {
     needDisposeCrypto = false;
     return(new RSASecretExchange
     {
         Id = Id,
         EntityId = EntityId,
         EncryptKey = EncryptKey,
         EncryptKeyId = EncryptKeyId,
         Secret = Secret?.Copy(),
         SecretFormatBeforeDecrypt = SecretFormatBeforeDecrypt,
         SecretFormatBeforeEncrypt = SecretFormatBeforeEncrypt,
         PublicKey = PublicKey,
         crypto = crypto
     });
 }