Files
cefsharp/CefSharp.Core/DevTools/DevToolsDomainResponseBase.cs
Alex Maitland fb779a5b46 Core - Move DevTools Client from CefSharp.dll to CefSharp.Core.dll
- 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
2023-03-14 14:05:48 +10:00

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);
}
}
}