mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 08:34:55 +00:00
fb779a5b46
- Moves the Dependency of System.Text.Json from CefSharp.dll BrowserSubProcess as a result no longer has a reference where wasn't required for it's operation. Resolves #4428 #4427
24 lines
707 B
C#
24 lines
707 B
C#
// Copyright © 2020 The CefSharp Authors. All rights reserved.
|
|
//
|
|
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
|
|
|
namespace CefSharp.DevTools
|
|
{
|
|
/// <summary>
|
|
/// DevToolsDomainResponseBase
|
|
/// </summary>
|
|
[System.Runtime.Serialization.DataContractAttribute]
|
|
public abstract class DevToolsDomainResponseBase
|
|
{
|
|
/// <summary>
|
|
/// Convert from string to base64 byte array
|
|
/// </summary>
|
|
/// <param name="data">string data</param>
|
|
/// <returns>byte array</returns>
|
|
public byte[] Convert(string data)
|
|
{
|
|
return System.Convert.FromBase64String(data);
|
|
}
|
|
}
|
|
}
|