public static Task <ITypeItem[]> GetTypeItemsAsync(this ITypeContext typeContext) { return(typeContext.Dispatcher.InvokeAsync(() => typeContext.ToArray())); }