Skip to content

Commit

Permalink
refactor a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
TiBarification committed Feb 3, 2025
1 parent 87fc925 commit e56eb2c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructi

MethodInfo executeEventMethod = typeof(EventManager)
.GetMethods(BindingFlags.Public | BindingFlags.Static)
.First(m => m.Name == "ExecuteEvent"
.First(m => m.Name == nameof(EventManager.ExecuteEvent)
&& m.GetParameters().Length == 1
&& m.ReturnType == typeof(bool));

Expand Down Expand Up @@ -94,7 +94,7 @@ private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructi

MethodInfo executeEventMethod = typeof(EventManager)
.GetMethods(BindingFlags.Public | BindingFlags.Static)
.First(m => m.Name == "ExecuteEvent"
.First(m => m.Name == nameof(EventManager.ExecuteEvent)
&& m.GetParameters().Length == 1
&& m.ReturnType == typeof(bool));

Expand Down

0 comments on commit e56eb2c

Please sign in to comment.