From e9172fa0d138bfdc3a7997ebedc29cd63098d014 Mon Sep 17 00:00:00 2001 From: John Douglas Leitch Date: Fri, 19 Jul 2024 01:03:38 -0400 Subject: [PATCH] Made OPerand into record. --- Reemit.Decompiler.Clr/Disassembler/Operand.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Reemit.Decompiler.Clr/Disassembler/Operand.cs b/Reemit.Decompiler.Clr/Disassembler/Operand.cs index 1f475dc..6cdffbf 100644 --- a/Reemit.Decompiler.Clr/Disassembler/Operand.cs +++ b/Reemit.Decompiler.Clr/Disassembler/Operand.cs @@ -1,10 +1,6 @@ namespace Reemit.Decompiler.Clr.Disassembler; -public class Operand(OperandType operandType, IReadOnlyCollection operandValue) +public record Operand(OperandType OperandType, IReadOnlyCollection OperandValue) { public static readonly Operand None = new(OperandType.None, Array.Empty()); - - public OperandType OperandType { get; } = operandType; - - public IReadOnlyCollection OperandValue { get; } = operandValue; }