static IFormatter ForceDynamicResolver(CerasSerializer ceras, Type type) { var r = ceras.GetFormatterResolver <DynamicObjectFormatterResolver>(); return(r.GetFormatter(type)); }
static IFormatter ForceReinterpret(CerasSerializer ceras, Type typeToBeFormatted) { var formatterType = typeof(ReinterpretFormatter <>).MakeGenericType(typeToBeFormatted); return((IFormatter)Activator.CreateInstance(formatterType)); }