XmlSchemaGroupBase.cs 700 B

12345678910111213141516171819202122232425262728
  1. // Author: Dwivedi, Ajay kumar
  2. // [email protected]
  3. using System;
  4. using System.Xml.Serialization;
  5. namespace System.Xml.Schema
  6. {
  7. /// <summary>
  8. /// Summary description for XmlSchemaGroupBase.
  9. /// </summary>
  10. public abstract class XmlSchemaGroupBase : XmlSchemaParticle
  11. {
  12. protected XmlSchemaGroupBase()
  13. {
  14. }
  15. [XmlIgnore]
  16. public abstract XmlSchemaObjectCollection Items { get; }
  17. internal void ValidateNSRecurseCheckCardinality (XmlSchemaAny any,
  18. ValidationEventHandler h, XmlSchema schema)
  19. {
  20. foreach (XmlSchemaParticle p in Items)
  21. p.ValidateDerivationByRestriction (any, h, schema);
  22. ValidateOccurenceRangeOK (any, h, schema);
  23. }
  24. }
  25. }