From 7691f09e5660c314c39cde158a95f31238afdc02 Mon Sep 17 00:00:00 2001 From: Michael Ganss Date: Thu, 12 Sep 2019 12:23:48 +0200 Subject: [PATCH] Fix #133 --- XmlSchemaClassGenerator.Tests/xsd/simple/simple.xsd | 1 + XmlSchemaClassGenerator/TypeModel.cs | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/XmlSchemaClassGenerator.Tests/xsd/simple/simple.xsd b/XmlSchemaClassGenerator.Tests/xsd/simple/simple.xsd index a616bcb8..7ba3388e 100644 --- a/XmlSchemaClassGenerator.Tests/xsd/simple/simple.xsd +++ b/XmlSchemaClassGenerator.Tests/xsd/simple/simple.xsd @@ -147,6 +147,7 @@ + diff --git a/XmlSchemaClassGenerator/TypeModel.cs b/XmlSchemaClassGenerator/TypeModel.cs index 9c8aded9..3a0e10fe 100644 --- a/XmlSchemaClassGenerator/TypeModel.cs +++ b/XmlSchemaClassGenerator/TypeModel.cs @@ -648,7 +648,6 @@ private bool IsNillableValueType get { return IsNillable - && !IsNullableValueType && !(IsCollection || IsArray) && ((PropertyType is EnumModel) || (PropertyType is SimpleModel && ((SimpleModel)PropertyType).ValueType.IsValueType)); }