From 23196a5e47af5d35147810e6b383f539c0cb0e8b Mon Sep 17 00:00:00 2001 From: Yoshi Askharoun Date: Tue, 7 Jun 2022 01:16:00 -0500 Subject: [PATCH] Fixed InterpreterEntry compile error --- UIX.Debug/Data/InterpreterEntry.cs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/UIX.Debug/Data/InterpreterEntry.cs b/UIX.Debug/Data/InterpreterEntry.cs index 9e0ca55..f30a89c 100644 --- a/UIX.Debug/Data/InterpreterEntry.cs +++ b/UIX.Debug/Data/InterpreterEntry.cs @@ -1,5 +1,5 @@ using System; -using System.Collections.Generic; +using System.Linq; namespace Microsoft.Iris.Debug.Data { @@ -14,7 +14,16 @@ namespace Microsoft.Iris.Debug.Data public object OpCode { get; private set; } public OpCodeArgument[] Arguments { get; private set; } - public override string ToString() => $"{OpCode}({string.Join(", ", (IEnumerable)Arguments)})"; + public override string ToString() + { + var args = +#if ZUNE5 + (System.Collections.Generic.IEnumerable)Arguments; +#else + Arguments.Select(a => a.ToString()).ToArray(); +#endif + return $"{OpCode}({string.Join(", ", args)})"; + } } public class OpCodeArgument