Extensions AddIfNotNull Method
Adds a key-value pair to a dictionary unless the value is null.

Namespace: HotDocs.Sdk.Cloud
Assembly: HotDocs.Sdk.Cloud (in HotDocs.Sdk.Cloud.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static void AddIfNotNull(
	this Dictionary<string, string> dict,
	string key,
	Object value
)

Parameters

dict
Type: OnlineSystem.Collections.Generic Dictionary OnlineString, OnlineString 

[Missing <param name="dict"/> documentation for "M:HotDocs.Sdk.Cloud.Extensions.AddIfNotNull(System.Collections.Generic.Dictionary{System.String,System.String},System.String,System.Object)"]

key
Type: OnlineSystem String

[Missing <param name="key"/> documentation for "M:HotDocs.Sdk.Cloud.Extensions.AddIfNotNull(System.Collections.Generic.Dictionary{System.String,System.String},System.String,System.Object)"]

value
Type: OnlineSystem Object

[Missing <param name="value"/> documentation for "M:HotDocs.Sdk.Cloud.Extensions.AddIfNotNull(System.Collections.Generic.Dictionary{System.String,System.String},System.String,System.Object)"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type OnlineDictionary OnlineString, OnlineString . When you use instance method syntax to call this method, omit the first parameter. For more information, see OnlineExtension Methods (Visual Basic) or OnlineExtension Methods (C# Programming Guide).
See Also