The Labs \ Source Viewer \ SSCLI \ System.Runtime.ConstrainedExecution \ PrePrepareMethodAttribute

  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. ** Class:  PrePrepareMethodAttribute
  18. **
  19. ** Purpose: Serves as a hint to ngen that the decorated method
  20. ** (and its statically determinable call graph) should be
  21. ** prepared (as for Constrained Execution Region use). This
  22. ** is primarily useful in the scenario where the method in
  23. ** question will be prepared explicitly at runtime and the
  24. ** author of the method knows this and wishes to avoid the
  25. ** overhead of runtime preparation.
  26. **
  27. ** Date:  December 18, 2003
  28. **
  29. ===========================================================*/
  30. using System.Runtime.InteropServices;
  31. namespace System.Runtime.ConstrainedExecution
  32. {
  33.     [AttributeUsage(AttributeTargets.Constructor | AttributeTargets.Method, Inherited = false)]
  34.    
  35.     public sealed class PrePrepareMethodAttribute : Attribute
  36.     {
  37.         public PrePrepareMethodAttribute()
  38.         {
  39.         }
  40.     }
  41. }

Developer Fusion