Change data classes from `class`es to `record`s.
MODIFY
WalletWasabi/Tor/Control/Messages/CircuitStatus/CircuitInfo.cs
WalletWasabi/Tor/Control/Messages/CircuitStatus/CircuitInfo.cs
@@ -10,7 +10,7 @@ namespace WalletWasabi.Tor.Control.Messages.CircuitStatus
/// Note that the <see cref="CircuitID"/> and <see cref="CircStatus"/> are then only mandatory
/// fields in <c>GETINFO circuit-status</c> reply.
/// </remarks>
- public class CircuitInfo
+ public record CircuitInfo
{
public CircuitInfo(string circuitID, CircStatus circStatus)
{

MODIFY
WalletWasabi/Tor/Control/Messages/GetInfoCircuitStatusReply.cs
WalletWasabi/Tor/Control/Messages/GetInfoCircuitStatusReply.cs
@@ -5,7 +5,7 @@ using WalletWasabi.Tor.Control.Messages.CircuitStatus;
namespace WalletWasabi.Tor.Control.Messages
{
- public class GetInfoCircuitStatusReply
+ public record GetInfoCircuitStatusReply
{
public GetInfoCircuitStatusReply(IList<CircuitInfo> circuits)
{

MODIFY
WalletWasabi/Tor/Control/Messages/ProtocolInfoReply.cs
WalletWasabi/Tor/Control/Messages/ProtocolInfoReply.cs
@@ -11,7 +11,7 @@ namespace WalletWasabi.Tor.Control.Messages
/// <remarks>
/// Note that the protocol_version is the only mandatory data for a valid PROTOCOLINFO response.
/// </remarks>
- public class ProtocolInfoReply
+ public record ProtocolInfoReply
{
private const string LineTypeProtocolInfo = "PROTOCOLINFO";
private const string LineTypeVersion = "VERSION";

MODIFY
WalletWasabi/Tor/Control/Messages/TorControlReply.cs
WalletWasabi/Tor/Control/Messages/TorControlReply.cs
@@ -22,7 +22,7 @@ namespace WalletWasabi.Tor.Control.Messages
/// </code>
/// </remarks>
/// <seealso href="https://gitweb.torproject.org/torspec.git/tree/control-spec.txt">Section 2.3</seealso>
- public class TorControlReply
+ public record TorControlReply
{
private static readonly ReadOnlyCollection<string> NoLines = new List<string>().AsReadOnly();

Change data classes from `class`es to `record`s.