Skip to content

Commit

Permalink
Make RangeAttribute type match property type (fixes #513)
Browse files Browse the repository at this point in the history
  • Loading branch information
mganss committed May 31, 2024
1 parent e835215 commit 59ba300
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion XmlSchemaClassGenerator/TypeModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1351,7 +1351,7 @@ public IEnumerable<CodeAttributeDeclaration> GetRestrictionAttributes()
{
var rangeAttribute = new CodeAttributeDeclaration(
CodeUtilities.CreateTypeReference(Attributes.Range, Configuration),
new(new CodeTypeOfExpression(minInclusive.Type)),
new(new CodeTypeOfExpression(GetReferenceFor(Namespace))),
new(new CodePrimitiveExpression(minInclusive.Value)),
new(new CodePrimitiveExpression(maxInclusive.Value)));

Expand Down

0 comments on commit 59ba300

Please sign in to comment.