Esempio n. 1
0
        public static void InitAot <T>()
        {
            Instance.GetParseFn <T>();
            JsvReader <T> .Parse(null);

            JsvReader <T> .GetParseFn();

            JsvReader <T> .GetParseStringSegmentFn();
        }
Esempio n. 2
0
        public T DeserializeFromString(string value)
        {
            if (typeof(T) == typeof(string))
            {
                return((T)(object)value);
            }

            return((T)JsvReader <T> .Parse(value));
        }