Property CanCallOriginal
- Namespace
- MonoMod.RuntimeDetour
- Assembly
- MonoMod.RuntimeDetour.dll
CanCallOriginal
Gets whether or not a NativeHook created in this context can call the original method from within
the hook.
public static bool CanCallOriginal { get; }
Property Value
Remarks
Even when this returns false, users should accept an orig
delegate and call it, but they
should make sure it's not null before doing so. This allows hooks to coexist even when the original
cannot be called.
This is equivalent to SupportsNativeDetourOrigEntrypoint on the IDetourFactory which is ambient on the current thread. That property should be checked directly if manually passing an IDetourFactory.