/// <summary> /// Serialize the (typed) value into a collection of name -> value pairs using the given serializer /// </summary> /// <param name="serializer">Serializer to use</param> /// <param name="requestInfo">RequestInfo representing the request</param> /// <param name="formatProvider"><see cref="IFormatProvider"/> given to the <see cref="Requester"/>, if any</param> /// <returns>Serialized value</returns> public override IEnumerable <KeyValuePair <string, string?> > SerializeValue(RequestQueryParamSerializer serializer, IRequestInfo requestInfo, IFormatProvider?formatProvider) { if (serializer == null) { throw new ArgumentNullException(nameof(serializer)); } return(serializer.SerializeQueryCollectionParam(this.name, this.values, new RequestQueryParamSerializerInfo(requestInfo, this.format, formatProvider))); }
/// <summary> /// Serialize the (typed) value into a collection of name -> value pairs using the given serializer /// </summary> /// <param name="serializer">Serializer to use</param> /// <param name="requestInfo">RequestInfo representing the request</param> /// <param name="formatProvider"><see cref="IFormatProvider"/> given to the <see cref="Requester"/>, if any</param> /// <returns>Serialized value</returns> public abstract IEnumerable <KeyValuePair <string, string?> > SerializeValue(RequestQueryParamSerializer serializer, IRequestInfo requestInfo, IFormatProvider?formatProvider);
/// <summary> /// Serialize the (typed) value into a collection of name -> value pairs using the given serializer /// </summary> /// <param name="serializer">Serializer to use</param> /// <param name="requestInfo">RequestInfo representing the request</param> /// <returns>Serialized value</returns> public abstract IEnumerable <KeyValuePair <string, string> > SerializeValue(RequestQueryParamSerializer serializer, IRequestInfo requestInfo);