diff --git a/src/Elasticsearch.Net/Serialization/Resolvers/ElasticsearchNetFormatterResolver.cs b/src/Elasticsearch.Net/Serialization/Resolvers/ElasticsearchNetFormatterResolver.cs index 2681820a73d..bca876831bd 100644 --- a/src/Elasticsearch.Net/Serialization/Resolvers/ElasticsearchNetFormatterResolver.cs +++ b/src/Elasticsearch.Net/Serialization/Resolvers/ElasticsearchNetFormatterResolver.cs @@ -18,7 +18,7 @@ public ElasticsearchNetFormatterResolver() _fallbackFormatter = new DynamicObjectTypeFallbackFormatter(_innerFormatterResolver); } - public static ElasticsearchNetFormatterResolver Instance => new ElasticsearchNetFormatterResolver(); + public static ElasticsearchNetFormatterResolver Instance { get; } = new ElasticsearchNetFormatterResolver(); public IJsonFormatter GetFormatter() => typeof(T) == typeof(object)