TokenHelperAppendNotNullT - метод
Appends the specified key-value pair to the dictionary if the value is not .
Пространство имён: Tessa.TokensСборка: Tessa (в Tessa.dll) Версия: 4.1.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
public static IDictionary<string, Object?> AppendNotNull<T>(
this IDictionary<string, Object?> request,
string key,
T value
)
<ExtensionAttribute>
Public Shared Function AppendNotNull(Of T) (
request As IDictionary(Of String, Object),
key As String,
value As T
) As IDictionary(Of String, Object)
public:
[ExtensionAttribute]
generic<typename T>
static IDictionary<String^, Object^>^ AppendNotNull(
IDictionary<String^, Object^>^ request,
String^ key,
T value
)
[<ExtensionAttribute>]
static member AppendNotNull :
request : IDictionary<string, Object> *
key : string *
value : 'T -> IDictionary<string, Object>
- request IDictionaryString, Object
- The dictionary to which the key-value pair will be appended.
- key String
- The key under which the value will be stored in the dictionary.
- value T
- The value to be stored in the dictionary. If the value is , it will not be added.
- T
- The type of the value to be added to the dictionary.
IDictionaryString,
ObjectThe updated dictionary after the key-value pair (if any) has been appended.В Visual Basic и C# этот метод можно вызывать как метод экземпляра для любого объекта типа
IDictionaryString,
Object. При вызове метода для экземпляра следует опускать первый параметр. Дополнительные сведения см. в разделе
Методы расширения (Visual Basic) или
Методы расширения (Руководство по программированию в C#).
| ArgumentNullException | Thrown if the request dictionary is . |