docs(dotnet): fixed broken code snippets which contained Java (#7260)

This commit is contained in:
Martin Costello 2021-06-22 13:56:28 +01:00 committed by GitHub
parent 73a43fce60
commit af18b31473
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -126,7 +126,7 @@ await page.SetInputFilesAsync("input#upload", new FilePayload
{
Name = "file.txt",
MimeType = "text/plain",
Buffer = "this is a test".getBytes(StandardCharsets.UTF_8),
Buffer = System.Text.Encoding.UTF8.GetBytes("this is a test"),
});
```

View File

@ -713,7 +713,7 @@ await page.SetInputFilesAsync("input#upload", new FilePayload
{
Name = "file.txt",
MimeType = "text/plain",
Buffer = "this is a test".getBytes(StandardCharsets.UTF_8),
Buffer = System.Text.Encoding.UTF8.GetBytes("this is a test"),
});
```