Skip to content

Commit 5e081f6

Browse files
committed
Don't set non-existing Order property on XmlAnyAttributeAttribute (fixes #572)
1 parent 6f928ee commit 5e081f6

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

XmlSchemaClassGenerator/TypeModel.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,8 +1025,6 @@ private IEnumerable<CodeAttributeDeclaration> GetAttributes(bool isArray, TypeMo
10251025
if (IsAny)
10261026
{
10271027
var anyAttribute = AttributeDecl<XmlAnyAttributeAttribute>();
1028-
if (Order != null)
1029-
anyAttribute.Arguments.Add(new(nameof(Order), new CodePrimitiveExpression(Order.Value)));
10301028
attributes.Add(anyAttribute);
10311029
}
10321030
else

0 commit comments

Comments
 (0)