Since .NET 8, Microsoft dropped all format-based/binary serialization. I would expect this rule not to be raised on .NET 8 (and higher) targeted code, For .NET 7 and below, I would not suggest any change.
[Serializable]
public class CurrencyMismatchException : Exception // Compliant for .NET 8
{
public CurrencyMismatchException() { }
public CurrencyMismatchException(string message) : base(message) { }
public CurrencyMismatchException(string message, Exception inner) : base(message, inner) { }
public CurrencyMismatchException(Currency cur0, Currency cur1, string operation)
: this(string.Format(QowaivMessages.CurrencyMismatchException, operation, cur0, cur1)) { }
}