 | BackingFieldUtilitySetInterfaceBackingFieldT Method |
Sets the backing field for a public interface property that also has a proxy backing field to serialize
Objects that implement the interface.
Namespace: CandlelightAssembly: Assembly-CSharp-firstpass (in Assembly-CSharp-firstpass.dll) Version: 0.0.0.0
Syntaxpublic static bool SetInterfaceBackingField<T>(
T value,
ref T interfaceBackingField,
ref Object objectBackingField,
Action<T> onAssign = null,
Action<T> onUnassign = null
)
where T : class
Parameters
- value
- Type: T
Value submitted to the T setter. - interfaceBackingField
- Type: T
Interface backing field. - objectBackingField
- Type: Object
Serialized backing field for a Object that implements T.
- onAssign (Optional)
- Type: SystemActionT
Optional callback to invoke when a new value is assigned. - onUnassign (Optional)
- Type: SystemActionT
Optional callback to invoke when the old value is unassigned.
Type Parameters
- T
- The interface to which the backing field should be restricted.
Return Value
Type:
Boolean, if the value changed; otherwise,
.
See Also