Ameisen

Untitled

Feb 23rd, 2021
721
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.
RAW Paste Data