Class MethodIdentity
Resolves a method to one canonical MethodBase so the same target reached through different reflection paths compares and hashes as a single key.
public static class MethodIdentity
- Inheritance
-
MethodIdentity
- Inherited Members
Methods
Normalize(MethodBase)
Returns the canonical MethodBase for a target, or the target itself when it has no canonical form (open generics, module-level methods, runtimes without handle resolution).
public static MethodBase Normalize(MethodBase target)
Parameters
targetMethodBaseThe method to normalize.
Returns
- MethodBase
The canonical instance to use as a routing key.