OSDP.Net 5.2.1
A .NET library for implementing the Open Supervised Device Protocol (OSDP)
Loading...
Searching...
No Matches
OSDP.Net.Utilities.Pollyfill Class Reference

Provide backward compability to .NET standard 2.0. More...

Static Public Member Functions

static bool TryAdd< TKey, TValue > (this IDictionary< TKey, TValue > dictionary, TKey key, TValue value)
 Attempts to add the specified key and value to the dictionary.

Detailed Description

Provide backward compability to .NET standard 2.0.

Definition at line 9 of file Pollyfill.cs.

Member Function Documentation

◆ TryAdd< TKey, TValue >()

bool OSDP.Net.Utilities.Pollyfill.TryAdd< TKey, TValue > ( this IDictionary< TKey, TValue > dictionary,
TKey key,
TValue value )
inlinestatic

Attempts to add the specified key and value to the dictionary.

Parameters
dictionary
key
value
Template Parameters
TKey
TValue
Returns
Exceptions
ArgumentNullException

Definition at line 21 of file Pollyfill.cs.


The documentation for this class was generated from the following file: