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

  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. // ParameterAttributes is an enum defining the attributes that may be
  19. // associated with a Parameter. These are defined in CorHdr.h.
  20. //
  21. // Date: Aug 99
  22. //
  23. namespace System.Reflection
  24. {
  25.    
  26.     using System;
  27.     // This Enum matchs the CorParamAttr defined in CorHdr.h
  28.     [Flags(), Serializable()]
  29.     [System.Runtime.InteropServices.ComVisible(true)]
  30.     public enum ParameterAttributes
  31.     {
  32.         None = 0,
  33.         // no flag is specified
  34.         In = 1,
  35.         // Param is [In]
  36.         Out = 2,
  37.         // Param is [Out]
  38.         Lcid = 4,
  39.         // Param is [lcid]
  40.         Retval = 8,
  41.         // Param is [Retval]
  42.         Optional = 16,
  43.         // Param is optional
  44.         // Reserved flags for Runtime use only.
  45.         ReservedMask = 61440,
  46.         HasDefault = 4096,
  47.         // Param has default value.
  48.         HasFieldMarshal = 8192,
  49.         // Param has FieldMarshal.
  50.         Reserved3 = 16384,
  51.         // reserved bit
  52.         Reserved4 = 32768
  53.         // reserved bit
  54.     }
  55. }

Developer Fusion