Fixed InterpreterEntry compile error

This commit is contained in:
Yoshi Askharoun
2022-06-07 01:16:00 -05:00
parent 02d1181b3f
commit 23196a5e47
+11 -2
View File
@@ -1,5 +1,5 @@
using System; using System;
using System.Collections.Generic; using System.Linq;
namespace Microsoft.Iris.Debug.Data namespace Microsoft.Iris.Debug.Data
{ {
@@ -14,7 +14,16 @@ namespace Microsoft.Iris.Debug.Data
public object OpCode { get; private set; } public object OpCode { get; private set; }
public OpCodeArgument[] Arguments { get; private set; } public OpCodeArgument[] Arguments { get; private set; }
public override string ToString() => $"{OpCode}({string.Join(", ", (IEnumerable<OpCodeArgument>)Arguments)})"; public override string ToString()
{
var args =
#if ZUNE5
(System.Collections.Generic.IEnumerable<OpCodeArgument>)Arguments;
#else
Arguments.Select(a => a.ToString()).ToArray();
#endif
return $"{OpCode}({string.Join(", ", args)})";
}
} }
public class OpCodeArgument public class OpCodeArgument