private dynamic[] _getNotifications() { this.isEngineInitialized(); var events = this.engine.Notifications; if (events == null || events.Count == 0) { return(new dynamic[] { }); } return(events.Select((p) => ReturnHelpers.convertStackItem(p.ToStackItem(new ReferenceCounter()))).ToArray()); }
private dynamic[] _getLogs() { this.isEngineInitialized(); var logs = this.engine.Logs; if (logs == null || logs.Count == 0) { return(new dynamic[] { }); } return(logs.Select((p) => ReturnHelpers.convertLog(p)).ToArray()); }
private dynamic[] _getResultStack() { return(this.engine != null?this.engine.ResultStack.Select((StackItem p) => ReturnHelpers.convertStackItem(p)).ToArray() : new dynamic[0]); }