The Labs \ Source Viewer \ SSCLI \ System.ComponentModel \ PropertyChangedEventArgs

  1. //------------------------------------------------------------------------------
  2. // <copyright file="PropertyChangedEventArgs.cs" company="Microsoft">
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. // </copyright>
  14. //------------------------------------------------------------------------------
  15. namespace System.ComponentModel
  16. {
  17.    
  18.     using System;
  19.     using System.Diagnostics;
  20.     using System.Security.Permissions;
  21.    
  22.     /// <devdoc>
  23.     /// <para>Provides data for the <see langword='PropertyChanged'/>
  24.     /// event.</para>
  25.     /// </devdoc>
  26.     [HostProtection(SharedState = true)]
  27.     public class PropertyChangedEventArgs : EventArgs
  28.     {
  29.         private readonly string propertyName;
  30.        
  31.         /// <devdoc>
  32.         /// <para>Initializes a new instance of the <see cref='System.ComponentModel.PropertyChangedEventArgs'/>
  33.         /// class.</para>
  34.         /// </devdoc>
  35.         public PropertyChangedEventArgs(string propertyName)
  36.         {
  37.             this.propertyName = propertyName;
  38.         }
  39.        
  40.         /// <devdoc>
  41.         /// <para>Indicates the name of the property that changed.</para>
  42.         /// </devdoc>
  43.         public virtual string PropertyName {
  44.             get { return propertyName; }
  45.         }
  46.     }
  47. }

Developer Fusion