From a976d91fbe4a78478dff9609dc9babe5618f356a Mon Sep 17 00:00:00 2001 From: Michael Ganss Date: Sat, 11 Apr 2020 16:37:24 +0200 Subject: [PATCH] Generate PropertyChanged members only if they're not already inherited --- XmlSchemaClassGenerator/TypeModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/XmlSchemaClassGenerator/TypeModel.cs b/XmlSchemaClassGenerator/TypeModel.cs index 297db242..3d083cc4 100644 --- a/XmlSchemaClassGenerator/TypeModel.cs +++ b/XmlSchemaClassGenerator/TypeModel.cs @@ -285,7 +285,7 @@ public override CodeTypeDeclaration Generate() if (IsAbstract) classDeclaration.TypeAttributes |= System.Reflection.TypeAttributes.Abstract; - if (Configuration.EnableDataBinding) + if (Configuration.EnableDataBinding && !(BaseClass is ClassModel)) { var propertyChangedEvent = new CodeMemberEvent() {