Exemple #1
0
            static FormatterCache()
            {
                var f = UnityResolverGetFormatterHelper.GetFormatter(typeof(T));

                if (f != null)
                {
                    formatter = (global::Utf8Json.IJsonFormatter <T>)f;
                }
            }
Exemple #2
0
 public IJsonFormatter GetFormatter(Type type)
 {
     return((IJsonFormatter)UnityResolverGetFormatterHelper.GetFormatter(type));
 }