Do you expose events as events?

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

123
<introEmbed body={<> You should expose events as events. </>} />
public Action
< connectioninformation > ConnectionProblem;

❌ Figure: Bad code

public event Action
< connectioninformation > ConnectionProblem;

✅ Figure: Good code

Acknowledgements

Adam Cogan
Related rules

Need help?

SSW Consulting has over 30 years of experience developing awesome software solutions.

We open source.Loving SSW Rules? Star us on GitHub. Star