Do you expose events as events?

Updated by Brady Stroud [SSW] 1 year ago. See history

123

You should expose events as events.

public Action
< connectioninformation > ConnectionProblem;

❌ Figure: Bad code

public event Action
< connectioninformation > ConnectionProblem;

✅ Figure: Good code

acknowledgements
related rules