mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-14 04:58:33 +00:00
docs: Clarifying method usages
This commit is contained in:
parent
8f107aa209
commit
fb41d76a9c
1 changed files with 3 additions and 0 deletions
|
|
@ -66,6 +66,7 @@ namespace ICD.Common.Utils.Extensions
|
||||||
/// <param name="extends"></param>
|
/// <param name="extends"></param>
|
||||||
/// <param name="key"></param>
|
/// <param name="key"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
|
[CanBeNull]
|
||||||
[PublicAPI]
|
[PublicAPI]
|
||||||
public static TValue GetDefault<TKey, TValue>(this IDictionary<TKey, TValue> extends, TKey key)
|
public static TValue GetDefault<TKey, TValue>(this IDictionary<TKey, TValue> extends, TKey key)
|
||||||
{
|
{
|
||||||
|
|
@ -88,6 +89,7 @@ namespace ICD.Common.Utils.Extensions
|
||||||
/// <param name="key"></param>
|
/// <param name="key"></param>
|
||||||
/// <param name="defaultValue"></param>
|
/// <param name="defaultValue"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
|
[CanBeNull]
|
||||||
[PublicAPI]
|
[PublicAPI]
|
||||||
public static TValue GetDefault<TKey, TValue>(this IDictionary<TKey, TValue> extends, TKey key, TValue defaultValue)
|
public static TValue GetDefault<TKey, TValue>(this IDictionary<TKey, TValue> extends, TKey key, TValue defaultValue)
|
||||||
{
|
{
|
||||||
|
|
@ -111,6 +113,7 @@ namespace ICD.Common.Utils.Extensions
|
||||||
/// <param name="key"></param>
|
/// <param name="key"></param>
|
||||||
/// <param name="defaultValue"></param>
|
/// <param name="defaultValue"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
|
[CanBeNull]
|
||||||
[PublicAPI]
|
[PublicAPI]
|
||||||
public static TValue GetOrAddDefault<TKey, TValue>(this IDictionary<TKey, TValue> extends, TKey key,
|
public static TValue GetOrAddDefault<TKey, TValue>(this IDictionary<TKey, TValue> extends, TKey key,
|
||||||
TValue defaultValue)
|
TValue defaultValue)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue