diff --git a/XmlSchemaClassGenerator/TypeModel.cs b/XmlSchemaClassGenerator/TypeModel.cs index 5684968..7cbb112 100644 --- a/XmlSchemaClassGenerator/TypeModel.cs +++ b/XmlSchemaClassGenerator/TypeModel.cs @@ -622,7 +622,7 @@ private void AddDocs(CodeTypeMember member) AddDescription(member.CustomAttributes, docs); - if (PropertyType is SimpleModel simpleType) + if (PropertyType is SimpleModel simpleType && !IsEnumerable) { docs.AddRange(simpleType.Documentation); docs.AddRange(simpleType.Restrictions.Select(r => new DocumentationModel { Language = English, Text = r.Description }));