mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-08-21 21:33:01 +00:00
Updated version
This commit is contained in:
@@ -70,8 +70,8 @@ namespace CryptoExchange.Net.Authentication
|
||||
public virtual ApiCredentials Copy()
|
||||
{
|
||||
if (PrivateKey == null)
|
||||
// Use .ToString() to create a copy of the SecureString
|
||||
return new ApiCredentials(Key!.ToString(), Secret!.ToString());
|
||||
// Use .GetString() to create a copy of the SecureString
|
||||
return new ApiCredentials(Key!.GetString(), Secret!.GetString());
|
||||
else
|
||||
return new ApiCredentials(PrivateKey!.Copy());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user