Table of Contents

Method GetIdentifiable

Namespace
MonoMod.Core.Platforms
Assembly
MonoMod.Core.dll

GetIdentifiable(MethodBase)

Gets an "identifiable" MethodBase. The returned instance is safe to use with object identity to refer to specific methods.
MethodBase GetIdentifiable(MethodBase method)

Parameters

method MethodBase
The method to identify.

Returns

MethodBase
A MethodBase with object identity.

Remarks

This must only be called if Features includes RequiresMethodIdentification. Typically, callers should use GetIdentifiable(MethodBase), which automatically checks the feature flag, as well as doing additional processing which is runtime-agnostic.