* XsdValidatingReader.cs : added ActualSchemaType to context type.
* XmlSchemaValidatingReader.cs : added SchemaInfo override.
svn path=/trunk/mcs/; revision=37834
+2004-12-16 Atsushi Enomoto <atsushi@ximian.com>
+
+ * XsdValidatingReader.cs : added ActualSchemaType to context type.
+ * XmlSchemaValidatingReader.cs : added SchemaInfo override.
+
2004-12-16 Atsushi Enomoto <atsushi@ximian.com>
* XsdParticleValidationState.cs :
get { return reader.ReadState; }
}
+ public override IXmlSchemaInfo SchemaInfo {
+ get { return xsinfo; }
+ }
+
public override string Value {
get {
if (currentDefaultAttribute < 0)
}
}
+#if NET_2_0
+ public XmlSchemaType ActualSchemaType {
+ get {
+ object at = ActualType;
+ if (at == null)
+ return null;
+ XmlSchemaType st = at as XmlSchemaType;
+ if (st == null)
+ st = XmlSchemaType.GetBuiltInSimpleType (
+ ((XmlSchemaDatatype) at).TypeCode);
+ return st;
+ }
+ }
+#endif
+
public bool IsInvalid {
get { return State == XsdValidationState.Invalid; }
}