Skip to content

Conversation

@JaThePlayer
Copy link
Member

Previously, these two ways to invoke orig would trigger CL0003, warning about not calling orig on any codepath , even though it is called:

using var detour4 = new Hook(..., static (Action<int> orig, int arg) => {
  orig.Invoke(arg);
});
            
using var detour5 = new Hook(..., static (Action<int> orig, int arg) =>  {
  orig?.Invoke(arg);
});```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant