 | BackingFieldUtilitySetKeyedListBackingFieldFromStringKeyedArrayT Method |
Sets a backing field for a list of identifiable objects that should have unique
String
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 SetKeyedListBackingFieldFromStringKeyedArray<T>(
List<T> backingField,
T[] value,
Func<string, T, T> mutateIdentifier,
bool ignoreCase = false
)
where T : Object, IIdentifiable<string>
Parameters
- backingField
- Type: System.Collections.GenericListT
Backing field of identifiable objects. - value
- Type: T
Value. - mutateIdentifier
- Type: SystemFuncString, T, T
A method to mutate the identifier on an object if it is not unique. - ignoreCase (Optional)
- Type: SystemBoolean
If set to , then all string-based keys will be made lowercased.
Type Parameters
- T
- A string-keyed backing field compatible object wrapper type.
Return Value
Type:
Boolean if the new value differs from the old one; otherwise,
.
See Also