public T DeserializeFromString(string value)
        {
            if (typeof(T) == typeof(string))
            {
                return((T)(object)value);
            }

            return((T)JsvReader <T> .Parse(value));
        }
Exemple #2
0
 public ParseStringDelegate GetParseFn(Type type)
 {
     return(JsvReader.GetParseFn(type));
 }
Exemple #3
0
 public ParseStringSpanDelegate GetParseStringSpanFn(Type type) => JsvReader.GetParseStringSpanFn(type);
Exemple #4
0
 public ParseStringSegmentDelegate GetParseStringSegmentFn(Type type) => JsvReader.GetParseStringSegmentFn(type);