Make struct 'readonly'
MODIFY
WalletWasabi.Fluent/ViewModels/Dialogs/Base/DialogResult.cs
WalletWasabi.Fluent/ViewModels/Dialogs/Base/DialogResult.cs
namespace WalletWasabi.Fluent.ViewModels.Dialogs.Base;
-public struct DialogResult<TResult>
+public readonly struct DialogResult<TResult>
{
public DialogResult(TResult? result, DialogResultKind kind)
{

MODIFY
WalletWasabi/Models/ErrorDescriptor.cs
WalletWasabi/Models/ErrorDescriptor.cs
namespace WalletWasabi.Models;
-public struct ErrorDescriptor : IEquatable<ErrorDescriptor>
+public readonly struct ErrorDescriptor : IEquatable<ErrorDescriptor>
{
public ErrorDescriptor(ErrorSeverity severity, string message)
{

MODIFY
WalletWasabi/Models/Height.cs
WalletWasabi/Models/Height.cs
@@ -2,7 +2,7 @@ using WalletWasabi.Helpers;
namespace WalletWasabi.Models;
-public struct Height : IEquatable<Height>, IEquatable<int>, IComparable<Height>, IComparable<int>
+public readonly struct Height : IEquatable<Height>, IEquatable<int>, IComparable<Height>, IComparable<int>
{
public Height(uint height) : this((int)height)
{

MODIFY
WalletWasabi/WabiSabi/Models/CoordinationFeeRate.cs
WalletWasabi/WabiSabi/Models/CoordinationFeeRate.cs
@@ -3,7 +3,7 @@ using WalletWasabi.Helpers;
namespace WalletWasabi.WabiSabi.Models;
-public struct CoordinationFeeRate
+public readonly struct CoordinationFeeRate
{
public static readonly CoordinationFeeRate Zero = new(0, Money.Zero);

Make struct 'readonly'