From 0d9e453f6a2f21e1f430d2686f4fa40743ea3846 Mon Sep 17 00:00:00 2001 From: Michael Ganss Date: Wed, 6 Nov 2019 15:55:22 +0100 Subject: [PATCH] Fix #147 --- XmlSchemaClassGenerator/TypeModel.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/XmlSchemaClassGenerator/TypeModel.cs b/XmlSchemaClassGenerator/TypeModel.cs index dd8bdf97..64d4638b 100644 --- a/XmlSchemaClassGenerator/TypeModel.cs +++ b/XmlSchemaClassGenerator/TypeModel.cs @@ -280,10 +280,10 @@ public override CodeTypeDeclaration Generate() classDeclaration.IsClass = true; classDeclaration.IsPartial = true; if (Configuration.AssemblyVisible) - { classDeclaration.TypeAttributes = (classDeclaration.TypeAttributes & ~System.Reflection.TypeAttributes.VisibilityMask) | System.Reflection.TypeAttributes.NestedAssembly; - } + if (IsAbstract) + classDeclaration.TypeAttributes |= System.Reflection.TypeAttributes.Abstract; if (Configuration.EnableDataBinding) {