 | BackingFieldUtilitySetKeyedListBackingFieldFromObjectKeyedDictTWrapper, TId, 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: CandlelightAssembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntaxpublic static bool SetKeyedListBackingFieldFromObjectKeyedDict<TWrapper, TId, TData>(
List<TWrapper> backingField,
Dictionary<TId, TData> value,
Func<TId, TData, TWrapper> factory
)
where TWrapper : IdentifiableBackingFieldCompatibleObjectWrapper<TId, TData>
where TId : Object
Parameters
- backingField
- Type: System.Collections.GenericListTWrapper
Backing field of identifiable wrapper objects. - value
- Type: System.Collections.GenericDictionaryTId, TData
Value. - factory
- Type: SystemFuncTId, TData, TWrapper
Method to create a new entry instance for the backing field from the key-value pair.
Type Parameters
- TWrapper
-
A Object-keyed backing field compatible object wrapper type.
- TId
- The Object-derived key type.
- TData
- The data type.
Return Value
Type:
Boolean if the new value differs from the old one; otherwise,
.
See Also