Delegate SetterHandler<T, S>
A setter delegate type
Namespace: HarmonyLib
Assembly: 0Harmony.dll
Syntax
[Obsolete("Use AccessTools.FieldRefAccess<T, S> for fields and AccessTools.MethodDelegate<Action<T, S>> for property setters")]
public delegate void SetterHandler<in T, in S>(T source, S value);
Parameters
Type | Name | Description |
---|---|---|
T | source | The instance the setter uses |
S | value | The value the setter uses |
Type Parameters
Name | Description |
---|---|
T | Type that setter sets field/property value for |
S | Type of the value that setter sets |