Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/System.XML/System.Xml.Schema/XmlSchemaAttribute.cs')
-rw-r--r--mcs/class/System.XML/System.Xml.Schema/XmlSchemaAttribute.cs10
1 files changed, 3 insertions, 7 deletions
diff --git a/mcs/class/System.XML/System.Xml.Schema/XmlSchemaAttribute.cs b/mcs/class/System.XML/System.Xml.Schema/XmlSchemaAttribute.cs
index b4b50820589..04ce21971ae 100644
--- a/mcs/class/System.XML/System.Xml.Schema/XmlSchemaAttribute.cs
+++ b/mcs/class/System.XML/System.Xml.Schema/XmlSchemaAttribute.cs
@@ -448,13 +448,9 @@ namespace System.Xml.Schema
validatedUse = Use;
#if NET_2_0
- if (attributeType != null) {
- attributeSchemaType = attributeType as XmlSchemaSimpleType;
- if (attributeType == XmlSchemaSimpleType.AnySimpleType)
- attributeSchemaType = XmlSchemaSimpleType.XsAnySimpleType;
- if (attributeSchemaType == null)
- attributeSchemaType = XmlSchemaType.GetBuiltInSimpleType (SchemaTypeName);
- }
+ attributeSchemaType = attributeType as XmlSchemaSimpleType;
+ if (attributeSchemaType == null)
+ attributeSchemaType = XmlSchemaType.GetBuiltInSimpleType (((XmlSchemaDatatype) attributeType).TypeCode);
#endif
ValidationId = schema.ValidationId;