Class HarmonyInline
- Namespace
- HarmonyLib
- Assembly
- 0Harmony.dll
Allows inlining an inner patch body; unsupported bodies keep a normal call
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public sealed class HarmonyInline : Attribute
- Inheritance
-
objectAttributeHarmonyInline
Constructors
HarmonyInline(bool)
Sets the optional inner patch inlining hint
public HarmonyInline(bool enabled = true)
Parameters
enabledboolTrue permits inlining; false keeps the normal call
Properties
Enabled
Whether eligible inner patch bodies may be copied
public bool Enabled { get; }
Property Value
- bool