Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Commit

Permalink
Typo correction
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaeldui committed Feb 20, 2022
1 parent f96ba86 commit 8296276
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -31,7 +31,7 @@ public static MemberDeclarationSyntax[] RmsEvent(string topic, string identifier
.WithAccessorList(AccessorList(new SyntaxList<AccessorDeclarationSyntax>(new[]
{
AccessorDeclaration(SyntaxKind.AddAccessorDeclaration, ParseStatement(
$"if ({privateEventIdentifier} == null) EventRouter.Subscribe(\"{topic}\", (RmsChangeType changeType, {typeName} args) => {privateEventIdentifier}?.Invoke(this, changeType, args)); {privateEventIdentifier} += value;")
$"if ({privateEventIdentifier} == null) EventRouter.Subscribe(\"{topic}\", (RmsEventType eventType, {typeName} args) => {privateEventIdentifier}?.Invoke(this, eventType, args)); {privateEventIdentifier} += value;")
.ToBlock()),
AccessorDeclaration(SyntaxKind.RemoveAccessorDeclaration, ParseStatement(
$"{privateEventIdentifier} -= value; if ({privateEventIdentifier} == null) EventRouter.Unsubscribe(\"{topic}\"); ")
Expand Down

0 comments on commit 8296276

Please sign in to comment.