diff --git a/XmlSchemaClassGenerator/TypeModel.cs b/XmlSchemaClassGenerator/TypeModel.cs index 824a9a5..93cb45e 100644 --- a/XmlSchemaClassGenerator/TypeModel.cs +++ b/XmlSchemaClassGenerator/TypeModel.cs @@ -1102,8 +1102,8 @@ private IEnumerable GetAttributes(bool isArray, TypeMo { var qualifiedName = xmlSchemaType.GetQualifiedName(); - if ((qualifiedName.Namespace == XmlSchema.Namespace && qualifiedName.Name != "anySimpleType") && - (xmlSchemaType.Datatype.ValueType == typeof(DateTime) && Configuration.DateTimeWithTimeZone) == false) + if (qualifiedName.Namespace == XmlSchema.Namespace && qualifiedName.Name != "anySimpleType" && + !(xmlSchemaType.Datatype.ValueType == typeof(DateTime) && Configuration.DateTimeWithTimeZone)) { args.Add(new("DataType", new CodePrimitiveExpression(qualifiedName.Name))); break;