Initializes a new item variable with a initializer

Namespace: DotNetNuke.Common.Utilities
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
protected StateVariable(
	string key,
	Func<T> initializer
)
Visual Basic
Protected Sub New ( 
	key As String,
	initializer As Func(Of T)
)

Parameters

key
Type: System..::..String
The key to use for storing the value in the dictionary
initializer
Type: System..::..Func<(Of <(<'T>)>)>
A function that is called in order to create a default value per dictionary

Remarks