Class HarmonyUncheckedReferenceBinding
- Namespace
- HarmonyLib
- Assembly
- 0Harmony.dll
Skip reference-type compatibility checks for one patch callback, including references produced by boxing.
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
public sealed class HarmonyUncheckedReferenceBinding : HarmonyAttribute
- Inheritance
-
objectAttributeHarmonyUncheckedReferenceBinding
- Inherited Members
Remarks
This does not add conversions or disable storage, value/address, or existing role-specific requirements. Transpilers reject it.
Constructors
HarmonyUncheckedReferenceBinding(bool)
Enable or disable unchecked reference binding for this callback or patch factory.
public HarmonyUncheckedReferenceBinding(bool enabled = true)
Parameters
enabledboolWhether to skip reference-type compatibility checks.