protected override IReadonlyTextDocument CreateReadonlyTextDocument(string text, System.Text.Encoding enc) { return(SimpleReadonlyDocument.CreateReadonlyDocumentAsync(new StringTextSource(text, enc)).Result); }
public async Task CreateTextDocumentAsync(string text) { var textSource = new StringTextSource(text); document = await SimpleReadonlyDocument.CreateReadonlyDocumentAsync(textSource); }