src/openSourceC.DotNetLibrary.Core/Extensions/StringBuilderExtensions.cs
/// <summary>
///		Appends a <see cref="DateTime"/> value to the parameters collection.
/// </summary>
/// <param name="stringBuilder">The <see cref="StringBuilder"/> object.</param>
/// <param name="key">The query-string key.</param>
/// <param name="dateTimeFormat">The DateTime format to use.</param>
/// <param name="value">The query-string value.</param>
/// <param name="defaultValue">The query-string default value, used if value is null or
///		empty. (optional)</param>
/// <returns>
///		The modified <see cref="StringBuilder"/> object.
/// </returns>
Appends a  value to the parameters collection.
Appends a value to the parameters collection .
public static StringBuilder AppendQueryStringPair(this StringBuilder stringBuilder, string key, string dateTimeFormat, DateTime? value, DateTime? defaultValue = null)
		{
			if ((value ??= defaultValue).HasValue)
			{
				return stringBuilder.AppendQueryStringPair(key, value!.Value.ToString(dateTimeFormat));
			}
			return stringBuilder;
		}
public static StringBuilder AppendQueryStringPair ( this StringBuilder stringBuilder , string key , string dateTimeFormat , DateTime ? value , DateTime ? defaultValue = null ) { if ( ( value ??= defaultValue ) . HasValue ) { return stringBuilder . AppendQueryStringPair ( key , value ! . Value . ToString ( dateTimeFormat ) ) ; } return stringBuilder ; }
Appends a  value to the parameters collection.
Appends a value to the parameters collection .
The modified  object.
The modified object .
StringBuilder
this
<not_specific>
key
string
The query-string key.
The query - string key .
dateTimeFormat
string
The DateTime format to use.
The DateTime format to use .
value
DateTime?
The query-string value.
The query - string value .
defaultValue
DateTime?
The query-string default value, used if value is null or
empty. (optional)
The query - string default value used if value is null or empty . ( optional )
stringBuilder
<not_specific>
None