 | BackingFieldUtilitySetKeyedListBackingFieldFromObjectKeyedArrayT, TId Method |
Sets a backing field for a list of identifiable objects that should have unique
Object 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 SetKeyedListBackingFieldFromObjectKeyedArray<T, TId>(
List<T> backingField,
T[] value,
Func<TId, T, T> mutateIdentifier
)
where T : Object, IIdentifiable<TId>
where TId : Object
Parameters
- backingField
- Type: System.Collections.GenericListT
Backing field of identifiable objects. - value
- Type: T
Value. - mutateIdentifier
- Type: SystemFuncTId, T, T
A method to mutate the identifier on an object if it is not unique.
Type Parameters
- T
- An integer-keyed backing field compatible object wrapper type.
- TId
- The Object-derived key type.
Return Value
Type:
Boolean if the new value differs from the old one; otherwise,
.
See Also