The Labs \ Source Viewer \ SSCLI \ System.Reflection \ MemberTypes

  1. // ==++==
  2. //
  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. //
  14. // ==--==
  15. ////////////////////////////////////////////////////////////////////////////////
  16. ////////////////////////////////////////////////////////////////////////////////
  17. //
  18. // MemberTypes is an bit mask marking each type of Member that is defined as
  19. // a subclass of MemberInfo. These are returned by MemberInfo.MemberType and
  20. // are useful in switch statements.
  21. //
  22. // Date: July 99
  23. //
  24. namespace System.Reflection
  25. {
  26.    
  27.     using System;
  28.     // This Enum matchs the CorTypeAttr defined in CorHdr.h
  29.     [Serializable()]
  30.     [Flags()]
  31.     [System.Runtime.InteropServices.ComVisible(true)]
  32.     public enum MemberTypes
  33.     {
  34.         // The following are the known classes which extend MemberInfo
  35.         Constructor = 1,
  36.         Event = 2,
  37.         Field = 4,
  38.         Method = 8,
  39.         Property = 16,
  40.         TypeInfo = 32,
  41.         Custom = 64,
  42.         NestedType = 128,
  43.         All = Constructor | Event | Field | Method | Property | TypeInfo | NestedType
  44.     }
  45. }

Developer Fusion