Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update MpMethodUtil.GetMethod (#423)
Changes: - `MethodType.Enumerator` support using `AccessTools.EnumeratorMoveNext` - Moved the final `return null` into the default case of the switch to stop the IDE from suggesting adding a default branch - Use `Enumerable.FirstOrDefault` as extension method again (previously it was automatically changed by IDE due to conflict with `GenCollection.FirstOrDefault`) As a side note, this could be updated again once Harmony 2.3 releases: - Getter/Setter indexers using `AccessTools.IndexerGetter`/`AccessTools.IndexerSetter` (used when method name is null instead of returning null as we do right now) - Another switch branch to support `MethodType.Async` using `AccessTools.AsyncMoveNext`
- Loading branch information