XmlSchemaFacet.cs 767 B

123456789101112131415161718192021222324252627282930313233343536
  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. val = string.Empty;
  19. }
  20. [DefaultValue(false)]
  21. [System.Xml.Serialization.XmlAttribute("fixed")]
  22. public virtual bool IsFixed
  23. {
  24. get{ return isFixed; }
  25. set{ isFixed = value; }
  26. }
  27. [System.Xml.Serialization.XmlAttribute("value")]
  28. public string Value
  29. {
  30. get{ return val; }
  31. set{ val = value; }
  32. }
  33. }
  34. }