internal static NameValueCollection ToNameValueCollection(this IDictionary<string, object> dict, IElasticsearchSerializer stringifier)
		{
			stringifier.ThrowIfNull("stringifier");
			if (dict == null || dict.Count < 0)
				return null;
			
			var nv = new NameValueCollection();
			foreach (var kv in dict.Where(kv => !kv.Key.IsNullOrEmpty()))
			{
				nv.Add(kv.Key, stringifier.Stringify(kv.Value));
			}
			return nv;
		}
        internal static NameValueCollection ToNameValueCollection(this IDictionary <string, object> dict, IElasticsearchSerializer stringifier)
        {
            stringifier.ThrowIfNull("stringifier");
            if (dict == null || dict.Count < 0)
            {
                return(null);
            }

            var nv = new NameValueCollection();

            foreach (var kv in dict.Where(kv => !kv.Key.IsNullOrEmpty()))
            {
                nv.Add(kv.Key, stringifier.Stringify(kv.Value));
            }
            return(nv);
        }