Improved usability & security by removing the implicit operator

This commit is contained in:
Thorsten Sommer 2024-08-28 20:59:00 +02:00
parent 127191abc2
commit a95cfc5ac8
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -8,6 +8,4 @@ public readonly record struct EncryptedText(string EncryptedData)
{
throw new SecurityException("Please provide the encrypted data.");
}
public static implicit operator string(EncryptedText encryptedText) => encryptedText.EncryptedData;
}