public static bool TryRegister(IJsonFormatter[] formatters, IJsonFormatterResolver[] resolvers) { if (!AllowPrivateExcludeNullStandardResolverCore.TryRegister(formatters, resolvers)) { return(false); } if (!AllowPrivateExcludeNullCamelCaseStandardResolverCore.TryRegister(formatters, resolvers)) { return(false); } if (!AllowPrivateExcludeNullSnakeCaseStandardResolverCore.TryRegister(formatters, resolvers)) { return(false); } return(true); }
public static void Register(IJsonFormatter[] formatters, IJsonFormatterResolver[] resolvers) { AllowPrivateExcludeNullStandardResolverCore.Register(formatters, resolvers); AllowPrivateExcludeNullCamelCaseStandardResolverCore.Register(formatters, resolvers); AllowPrivateExcludeNullSnakeCaseStandardResolverCore.Register(formatters, resolvers); }