 | BackingFieldUtilitySetKeyedListBackingFieldFromIntKeyedArrayT Method |
Sets a backing field for a list of identifiable objects that should have unique
Int32
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 SetKeyedListBackingFieldFromIntKeyedArray<T>(
List<T> backingField,
T[] value,
Func<int, T, T> mutateIdentifier
)
where T : Object, IIdentifiable<int>
Parameters
- backingField
- Type: System.Collections.GenericListT
Backing field of identifiable objects. - value
- Type: T
Value. - mutateIdentifier
- Type: SystemFuncInt32, 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.
Return Value
Type:
Boolean if the new value differs from the old one; otherwise,
.
See Also