Skip to content

Conversation

@SergeiPavlov
Copy link
Contributor

@SergeiPavlov SergeiPavlov commented Apr 21, 2022

The "Updated .NET Event pattern" (https://docs.microsoft.com/en-us/dotnet/csharp/modern-events) does not require event args to be inherited from EventArgs
It means they often (when they are sealed classes without hierarchy) can be converted into readonly structs to save GC work.

Also:

  • Refactor event invocation to ?.Invoke( syntax

@alex-kulakov alex-kulakov merged commit 24bd24d into DataObjects-NET:master Jul 11, 2022
@SergeiPavlov SergeiPavlov deleted the upstream/struct_EventArgs branch July 11, 2022 17:46
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.

2 participants