Advertisement
Ameisen

Untitled

Feb 23rd, 2021
1,192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.38 KB | None | 0 0
  1. ...
  2. private void OnWheel(Event mouseEvent) { ... }
  3. ...
  4. // OnWheelEvent is Action<Event>
  5. OnWheelEvent = EventInvoker.From(OnWheel);
  6. ...
  7.  
  8. static class EventInvoker {
  9.     public static Action<T> From<T>(Action<T> action) ...
  10. }
  11.  
  12. error CS0411: The type arguments for method 'EventInvoker.From<T>(Action<T>)' cannot be inferred from the usage. Try specifying the type arguments explicitly.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement