Name

LoaderOptimizationAttribute

Synopsis

This attribute can be used only on your application’s Main method. It sets the type of default optimization used to share internal resources across application domains. It is most relevant when you use the AppDomain class to create more than one domain from your application. By default, if you do not use this attribute, the .NET Framework makes optimizations with the assumption that your application has only a single domain.

public sealed class LoaderOptimizationAttribute : Attribute {
// Public Constructors
   public LoaderOptimizationAttribute(byte value);
   public LoaderOptimizationAttribute(LoaderOptimization value);
// Public Instance Properties
   public LoaderOptimization Value{get; }
}

Hierarchy

Object Attribute LoaderOptimizationAttribute

Valid On

Method

Get C# in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.