Property CreateSourceCloneIfNotILClone
CreateSourceCloneIfNotILClone
Gets or sets whether the detour factory should create a clone of Source which, when called, behaves as-if
the source was not detoured. If the IDetourFactory supports this, the created ICoreDetour will
implement ICoreDetourWithClone, and the clone will be available from SourceMethodClone.
public bool CreateSourceCloneIfNotILClone { get; init; }
Property Value
Remarks
The IDetourFactory should only generate a clone if that clone is not strictly an IL clone.
The IDetourFactory is not obligated to respect this option; it is permitted to ignore it. Clients which require this behavior should have a fallback path which performs an IL clone using DynamicMethodDefinition or another similar method.
- See Also