Exemple #1
0
 protected abstract ReadOnlySpan <char> FromJson(JsonClass value, string json);
Exemple #2
0
 protected abstract string ToJson(JsonClass jsonClass);
Exemple #3
0
 protected override ReadOnlySpan <char> FromJson(JsonClass value, string json)
 {
     return(Encoding.UTF8.GetString(_convert.FromJson(value, Encoding.UTF8.GetBytes(json))));
 }
Exemple #4
0
        protected override string ToJson(JsonClass jsonClass)
        {
            var jsonUtf8 = _convert.ToJsonUtf8(jsonClass);

            return(Encoding.UTF8.GetString(jsonUtf8));
        }
Exemple #5
0
 protected override ReadOnlySpan <char> FromJson(JsonClass value, string json)
 {
     return(_convert.FromJson(value, json));
 }
Exemple #6
0
 protected override string ToJson(JsonClass jsonClass)
 {
     return(_convert.ToJson(jsonClass).ToString());
 }