using Newtonsoft.Json; using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Monaco.Languages { /// /// https://microsoft.github.io/monaco-editor/api/interfaces/monaco.languages.completionlist.html /// public sealed class CompletionList : IEnumerable // TODO: Could I somehow also just make this a list? Investigate Json Serialization Converter helper for that? { [JsonProperty("isIncomplete", NullValueHandling = NullValueHandling.Ignore)] public bool IsIncomplete { get; set; } [JsonProperty("items")] public IList Items { get; set; } = new List(); public IEnumerator GetEnumerator() { return Items.GetEnumerator(); } IEnumerator IEnumerable.GetEnumerator() { return Items.GetEnumerator(); } } }