Click or drag to resize
BackingFieldUtilitySetKeyedListBackingFieldFromIntKeyedDictTWrapper, TData Method
Sets a backing field for a list of identifiable objects that should have unique keys. Use this method when you need to serialize something that may be deserialized as a dictionary.

Namespace: Candlelight
Assembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntax
C#
public static bool SetKeyedListBackingFieldFromIntKeyedDict<TWrapper, TData>(
	List<TWrapper> backingField,
	Dictionary<int, TData> value,
	Func<int, TData, TWrapper> factory
)
where TWrapper : IdentifiableBackingFieldCompatibleObjectWrapper<int, TData>

Parameters

backingField
Type: System.Collections.GenericListTWrapper
Backing field of identifiable wrapper objects.
value
Type: System.Collections.GenericDictionaryInt32, TData
Value.
factory
Type: SystemFuncInt32, TData, TWrapper
Method to create a new entry instance for the backing field from the key-value pair.

Type Parameters

TWrapper
An integer-keyed backing field compatible object wrapper type.
TData
The data type.

Return Value

Type: Boolean
if the new value differs from the old one; otherwise, .
See Also