Exemplo n.º 1
0
        private static object FormatInvocationResult(InvocationResultModel invocationResult)
        {
            var data = new List<object> { new object[] { "Value", "Type" } };
            if (invocationResult == null)
            {
                data.Add(new object[] { null, null });
                return data;
            }

            data.Add(new[] { invocationResult.Value, invocationResult.Type.FullName });
            return data;
        }
        private static object FormatInvocationResult(InvocationResultModel invocationResult)
        {
            if (invocationResult == null)
                return null;

            return new
            {
                value = invocationResult.Value,
                type = invocationResult.Type.FullName
            };
        }