Class DictionaryExtensions
Inherited Members
Namespace: DotNetNuke.Common.Utilities
Assembly: DotNetNuke.dll
Syntax
public static class DictionaryExtensions
Methods
GetValue<T>(IDictionary, object, T)
Declaration
public static T GetValue<T>(this IDictionary bag, object key, T defaultValue)
Parameters
| Type | Name | Description |
|---|---|---|
| IDictionary | bag | |
| object | key | |
| T | defaultValue |
Returns
| Type | Description |
|---|---|
| T |
Type Parameters
| Name | Description |
|---|---|
| T |
SetValue<T>(IDictionary, object, T, T)
Declaration
public static void SetValue<T>(this IDictionary bag, object key, T value, T defaultValue)
Parameters
| Type | Name | Description |
|---|---|---|
| IDictionary | bag | |
| object | key | |
| T | value | |
| T | defaultValue |
Type Parameters
| Name | Description |
|---|---|
| T |