C# Класс AuthBridge.Clients.Util.DictionaryExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

AddDataIfNotEmpty() публичный статический Метод

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. ///
Результат void

AddItemIfNotEmpty() публичный статический Метод

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. ///
Результат void