docs(dotnet): fixed broken code snippets which contained Java (#7260)
This commit is contained in:
parent
73a43fce60
commit
af18b31473
|
|
@ -126,7 +126,7 @@ await page.SetInputFilesAsync("input#upload", new FilePayload
|
||||||
{
|
{
|
||||||
Name = "file.txt",
|
Name = "file.txt",
|
||||||
MimeType = "text/plain",
|
MimeType = "text/plain",
|
||||||
Buffer = "this is a test".getBytes(StandardCharsets.UTF_8),
|
Buffer = System.Text.Encoding.UTF8.GetBytes("this is a test"),
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -713,7 +713,7 @@ await page.SetInputFilesAsync("input#upload", new FilePayload
|
||||||
{
|
{
|
||||||
Name = "file.txt",
|
Name = "file.txt",
|
||||||
MimeType = "text/plain",
|
MimeType = "text/plain",
|
||||||
Buffer = "this is a test".getBytes(StandardCharsets.UTF_8),
|
Buffer = System.Text.Encoding.UTF8.GetBytes("this is a test"),
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue