mirror of
https://github.com/gorules/zen.git
synced 2026-10-05 16:02:40 +00:00
24 lines
375 B
C#
24 lines
375 B
C#
namespace GoRules.ZenEngine;
|
|
|
|
using System.Text;
|
|
|
|
public class JsonBuffer
|
|
{
|
|
public byte[] Value { get; }
|
|
|
|
public JsonBuffer(byte[] value)
|
|
{
|
|
Value = value;
|
|
}
|
|
|
|
public JsonBuffer(string json)
|
|
{
|
|
Value = Encoding.UTF8.GetBytes(json);
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return Encoding.UTF8.GetString(Value);
|
|
}
|
|
}
|