Table of Contents

Method WithLock

Namespace
MonoMod.RuntimeDetour
Assembly
MonoMod.RuntimeDetour.dll

WithLock()

Takes the lock for this function, and returns a disposable object to automatically release the lock as needed in a using block.
public MethodDetourInfo.Lock WithLock()

Returns

MethodDetourInfo.Lock
A disposable object which manages the lock.