O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

LoaderOptimizationAttribute

Synopsis

This attribute can only be used 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 method LoaderOptimizationAttribute(byte value);  
   public method LoaderOptimizationAttribute(
        LoaderOptimization value);  
// Public Instance Properties
   public field LoaderOptimization Value{get; } 
}

Hierarchy

ObjectAttributeLoaderOptimizationAttribute

Valid On

Method

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required