#include "Stdafx.h" #pragma once using namespace System; namespace CefSharp { /// /// Converts an unmanaged string to a (managed) .NET string. /// /// The string that should be converted. /// A .NET string. String^ toClr(const cef_string_t& cefStr); /// /// Converts an unmanaged string to a (managed) .NET string. /// /// The string that should be converted. /// A .NET string. String^ toClr(const CefString& cefStr); /// /// Converts a .NET string to native (unamanged) format. Note that this method does not allocate a new copy of the string, but /// rather returns a pointer to the memory in the existing managed String object. /// /// The string that should be converted. /// An unmanaged representation of the provided string. CefString toNative(String^ str); void assignFromString(cef_string_t& cefStrT, String^ str); }