XmlSchemaFacet.cs 749 B

12345678910111213141516171819202122232425262728293031323334353637
  1. // Author: Dwivedi, Ajay kumar
  2. // [email protected]
  3. using System;
  4. using System.Xml;
  5. using System.Xml.Serialization;
  6. using System.ComponentModel;
  7. namespace System.Xml.Schema
  8. {
  9. /// <summary>
  10. /// Summary description for XmlSchemaFacet.
  11. /// </summary>
  12. public abstract class XmlSchemaFacet : XmlSchemaAnnotated
  13. {
  14. private bool isFixed;
  15. private string val;
  16. protected XmlSchemaFacet()
  17. {
  18. }
  19. [System.Xml.Serialization.XmlAttribute("value")]
  20. public string Value
  21. {
  22. get{ return val; }
  23. set{ val = value; }
  24. }
  25. [DefaultValue(false)]
  26. [System.Xml.Serialization.XmlAttribute("fixed")]
  27. public virtual bool IsFixed
  28. {
  29. get{ return isFixed; }
  30. set{ isFixed = value; }
  31. }
  32. }
  33. }