| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- // Author: Dwivedi, Ajay kumar
- // [email protected]
- using System;
- using System.Xml;
- namespace System.Xml.Schema
- {
- /// <summary>
- /// Summary description for XmlSchemaUnique.
- /// </summary>
- public class XmlSchemaUnique : XmlSchemaIdentityConstraint
- {
- private int errorCount;
- public XmlSchemaUnique()
- {
- }
- /// <remarks>
- /// 1. name must be present
- /// 2. selector and field must be present
- /// </remarks>
- [MonoTODO]
- internal new int Compile(ValidationEventHandler h, XmlSchemaInfo info)
- {
- return base.Compile(h,info);
- }
-
- [MonoTODO]
- internal int Validate(ValidationEventHandler h)
- {
- return errorCount;
- }
- internal new void error(ValidationEventHandler handle, string message)
- {
- errorCount++;
- ValidationHandler.RaiseValidationError(handle, this, message);
- }
- }
- }
|