home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 40 / IOPROG_40.ISO / SOFT / NETFrameworkSDK.exe / comsdk.cab / samples.exe / ClsView / CSharpEventInfo.cs < prev    next >
Encoding:
Text File  |  2000-06-23  |  1.6 KB  |  58 lines

  1. /*=====================================================================
  2.   File:      CSharpEventInfo.cs
  3.  
  4.   Summary:   Brief summary of the file contents and purpose.
  5.  
  6. ---------------------------------------------------------------------
  7.   This file is part of the Microsoft NGWS SDK Code Samples.
  8.  
  9.   Copyright (C) 2000 Microsoft Corporation.  All rights reserved.
  10.  
  11. This source code is intended only as a supplement to Microsoft
  12. Development Tools and/or on-line documentation.  See these other
  13. materials for detailed information regarding Microsoft code samples.
  14.  
  15. THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  16. KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  17. IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  18. PARTICULAR PURPOSE.
  19. =====================================================================*/
  20.  
  21. namespace LangUtil {
  22.  
  23. using System;
  24. using System.Text;
  25. using System.Reflection;
  26. using System.Collections;
  27.  
  28.    public class CSharpEventInfo : LangEventInfo
  29.    {
  30.       public CSharpEventInfo( EventInfo myEvent ) : base( myEvent )
  31.       {      
  32.       }
  33.  
  34.       public string Attributes
  35.       {
  36.          override get
  37.          {
  38.             StringBuilder sb = new StringBuilder();
  39.             
  40.             /*    not yet implemented  */ 
  41.             
  42.             return sb.ToString();
  43.          }
  44.       }
  45.  
  46.  
  47.       public string TextDeclaration
  48.       {
  49.          override get { return Attributes + "event " + m_Name; }      
  50.       }
  51.    
  52.       public override bool IsEvent() { return true; }
  53.  
  54.  
  55.    } // End class
  56.  
  57. } // namespace LangUtil
  58.