C# Class AuthBridge.Clients.Util.DictionaryExtensions

Show file Open project: Teleopti/authbridge

Public Methods

Method Description
AddDataIfNotEmpty ( string>.this dictionary, System.Xml.Linq.XDocument document, string elementName ) : void

Adds the value from an XDocument with the specified element name if it's not empty.

AddItemIfNotEmpty ( string>.this dictionary, string key, string value ) : void

Adds a key/value pair to the specified dictionary if the value is not null or empty.

Method Details

AddDataIfNotEmpty() public static method

Adds the value from an XDocument with the specified element name if it's not empty.
public static AddDataIfNotEmpty ( string>.this dictionary, System.Xml.Linq.XDocument document, string elementName ) : void
dictionary string>.this /// The dictionary. ///
document System.Xml.Linq.XDocument /// The document. ///
elementName string /// Name of the element. ///
return void

AddItemIfNotEmpty() public static method

Adds a key/value pair to the specified dictionary if the value is not null or empty.
public static AddItemIfNotEmpty ( string>.this dictionary, string key, string value ) : void
dictionary string>.this /// The dictionary. ///
key string /// The key. ///
value string /// The value. ///
return void