The Labs \ Source Viewer \ SSCLI \ System.CodeDom \ CodeEventReferenceExpression

  1. //------------------------------------------------------------------------------
  2. // <copyright file="CodeEventReferenceExpression.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.CodeDom
  16. {
  17.    
  18.     using System.Diagnostics;
  19.     using System;
  20.     using Microsoft.Win32;
  21.     using System.Collections;
  22.     using System.Runtime.InteropServices;
  23.    
  24.     /// <devdoc>
  25.     /// <para>[To be supplied.]</para>
  26.     /// </devdoc>
  27.     [ClassInterface(ClassInterfaceType.AutoDispatch), ComVisible(true), Serializable()]
  28.     public class CodeEventReferenceExpression : CodeExpression
  29.     {
  30.         private CodeExpression targetObject;
  31.         private string eventName;
  32.        
  33.         /// <devdoc>
  34.         /// <para>[To be supplied.]</para>
  35.         /// </devdoc>
  36.         public CodeEventReferenceExpression()
  37.         {
  38.         }
  39.        
  40.         /// <devdoc>
  41.         /// <para>[To be supplied.]</para>
  42.         /// </devdoc>
  43.         public CodeEventReferenceExpression(CodeExpression targetObject, string eventName)
  44.         {
  45.             this.targetObject = targetObject;
  46.             this.eventName = eventName;
  47.         }
  48.        
  49.         /// <devdoc>
  50.         /// <para>[To be supplied.]</para>
  51.         /// </devdoc>
  52.         public CodeExpression TargetObject {
  53.             get { return targetObject; }
  54.             set { this.targetObject = value; }
  55.         }
  56.        
  57.         /// <devdoc>
  58.         /// <para>[To be supplied.]</para>
  59.         /// </devdoc>
  60.         public string EventName {
  61.             get { return (eventName == null) ? string.Empty : eventName; }
  62.             set { eventName = value; }
  63.         }
  64.     }
  65. }

Developer Fusion