Click or drag to resize

ContainerHelperNewDictionary Method (Type, Type, Object)

Creates a new dictionary of the given key type and value type, initialized with the content of the old dictionary (clones the old dictionary)

Namespace:  de.unika.ipd.grGen.libGr
Assembly:  libGr (in libGr.dll) Version: GrGen.NET 7.2
Syntax
C#
public static IDictionary NewDictionary(
	Type keyType,
	Type valueType,
	Object oldDictionary
)

Parameters

keyType
Type: SystemType
The key type of the dictionary to be created
valueType
Type: SystemType
The value type of the dictionary to be created
oldDictionary
Type: SystemObject
The old dictionary to be cloned

Return Value

Type: IDictionary
The newly created dictionary, containing the content of the old dictionary, null if unsuccessfull
See Also