NotifyParentPropertyAttribute.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. //
  2. // System.ComponentModel.NotifyParentPropertyAttribute.cs
  3. //
  4. // Author:
  5. // Tim Coleman ([email protected])
  6. //
  7. // Copyright (C) Tim Coleman, 2002
  8. //
  9. //
  10. namespace System.ComponentModel {
  11. [AttributeUsage (AttributeTargets.Property)]
  12. public sealed class NotifyParentPropertyAttribute : Attribute {
  13. #region Fields
  14. bool notifyParent;
  15. #endregion // Fields
  16. public static readonly NotifyParentPropertyAttribute No = new NotifyParentPropertyAttribute (false);
  17. public static readonly NotifyParentPropertyAttribute Yes = new NotifyParentPropertyAttribute (true);
  18. public static readonly NotifyParentPropertyAttribute Default = new NotifyParentPropertyAttribute (false);
  19. #region Constructors
  20. public NotifyParentPropertyAttribute (bool notifyParent)
  21. {
  22. this.notifyParent = notifyParent;
  23. }
  24. #endregion // Constructors
  25. #region Properties
  26. public bool NotifyParent {
  27. get { return notifyParent; }
  28. }
  29. #endregion // Properties
  30. #region Methods
  31. [MonoTODO]
  32. public override bool Equals (object obj)
  33. {
  34. throw new NotImplementedException ();
  35. }
  36. [MonoTODO]
  37. public override int GetHashCode ()
  38. {
  39. throw new NotImplementedException ();
  40. }
  41. [MonoTODO]
  42. public override bool IsDefaultAttribute ()
  43. {
  44. throw new NotImplementedException ();
  45. }
  46. #endregion // Methods
  47. }
  48. }