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

  1. //------------------------------------------------------------------------------
  2. // <copyright file="CodeMemberEvent.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>
  26.     /// Represents an event member.
  27.     /// </para>
  28.     /// </devdoc>
  29.     [ClassInterface(ClassInterfaceType.AutoDispatch), ComVisible(true), Serializable()]
  30.     public class CodeMemberEvent : CodeTypeMember
  31.     {
  32.         private CodeTypeReference type;
  33.         private CodeTypeReference privateImplements = null;
  34.         private CodeTypeReferenceCollection implementationTypes = null;
  35.        
  36.         /// <devdoc>
  37.         /// <para>[To be supplied.]</para>
  38.         /// </devdoc>
  39.         public CodeMemberEvent()
  40.         {
  41.         }
  42.        
  43.         /// <devdoc>
  44.         /// <para>
  45.         /// Gets or sets the member field type.
  46.         /// </para>
  47.         /// </devdoc>
  48.         public CodeTypeReference Type {
  49.             get {
  50.                 if (type == null) {
  51.                     type = new CodeTypeReference("");
  52.                 }
  53.                 return type;
  54.             }
  55.             set { type = value; }
  56.         }
  57.        
  58.         /// <devdoc>
  59.         /// <para>[To be supplied.]</para>
  60.         /// </devdoc>
  61.         public CodeTypeReference PrivateImplementationType {
  62.             get { return privateImplements; }
  63.             set { privateImplements = value; }
  64.         }
  65.        
  66.         /// <devdoc>
  67.         /// <para>[To be supplied.]</para>
  68.         /// </devdoc>
  69.         public CodeTypeReferenceCollection ImplementationTypes {
  70.             get {
  71.                 if (implementationTypes == null) {
  72.                     implementationTypes = new CodeTypeReferenceCollection();
  73.                 }
  74.                 return implementationTypes;
  75.             }
  76.         }
  77.     }
  78. }

Developer Fusion