From 47ae63fe4976e8552acf28d4fa29d0613d7af15d Mon Sep 17 00:00:00 2001 From: Glenn <5834289+glennawatson@users.noreply.github.com> Date: Mon, 24 Feb 2020 11:44:42 +1100 Subject: [PATCH] Fix name issue (#115) --- .../Generation/Generators/InstanceEventGenerator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Pharmacist.Core/Generation/Generators/InstanceEventGenerator.cs b/src/Pharmacist.Core/Generation/Generators/InstanceEventGenerator.cs index 6a43681..fbfc69e 100644 --- a/src/Pharmacist.Core/Generation/Generators/InstanceEventGenerator.cs +++ b/src/Pharmacist.Core/Generation/Generators/InstanceEventGenerator.cs @@ -106,7 +106,7 @@ private static ClassDeclarationSyntax GenerateEventWrapperClass(ITypeDefinition var members = new List { GenerateEventWrapperField(typeDefinition), GenerateEventWrapperClassConstructor(typeDefinition, baseTypeDefinition != null) }; members.AddRange(events.OrderBy(x => x.Name).Select(x => GenerateEventWrapperObservable(x, DataFieldName)).Where(x => x != null).Select(x => x!)); - var classDeclaration = ClassDeclaration(typeDefinition.Name + "Events") + var classDeclaration = ClassDeclaration("Rx" + typeDefinition.Name + "Events") .WithModifiers(TokenList(Token(SyntaxKind.PublicKeyword))) .WithMembers(List(members)) .WithObsoleteAttribute(typeDefinition)