Click or drag to resize
BackingFieldUtilitySetKeyedListBackingFieldFromStringKeyedDictTWrapper, 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 SetKeyedListBackingFieldFromStringKeyedDict<TWrapper, TData>(
	List<TWrapper> backingField,
	Dictionary<string, TData> value,
	Func<string, TData, TWrapper> factory,
	bool ignoreCase = false
)
where TWrapper : IdentifiableBackingFieldCompatibleObjectWrapper<string, TData>

Parameters

backingField
Type: System.Collections.GenericListTWrapper
Backing field of identifiable wrapper objects.
value
Type: System.Collections.GenericDictionaryString, TData
Value.
factory
Type: SystemFuncString, TData, TWrapper
Method to create a new entry instance for the backing field from the key-value pair.
ignoreCase (Optional)
Type: SystemBoolean
If set to , then all keys will be made lowercased.

Type Parameters

TWrapper
A string-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