Skip to content

Commit b778ad5

Browse files
committed
[dotnet] [bidi] Rename method of screenshot result to ToByteArray
1 parent dd50e28 commit b778ad5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Diff for: dotnet/src/webdriver/BiDi/Modules/BrowsingContext/CaptureScreenshotCommand.cs

+1-4
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,5 @@ public record ElementClipRectangle(Script.SharedReference Element) : ClipRectang
4545

4646
public record CaptureScreenshotResult(string Data)
4747
{
48-
public byte[] AsBytes()
49-
{
50-
return System.Convert.FromBase64String(Data);
51-
}
48+
public byte[] ToByteArray() => System.Convert.FromBase64String(Data);
5249
}

0 commit comments

Comments
 (0)