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

LoaderOptimization

Synopsis

This enumeration is used for the LoaderOptimizationAttribute constructor. It specifies whether your application will use more than one AppDomain. Use the MultiDomain value if your application contains many domains that use the same code, and use MultiDomainHost if your application hosts multiple domains with unique code — in which case resources are only shared for globally available assemblies. NotSpecified reverts to SingleDomain, unless the default domain or host specifies otherwise.

public enum LoaderOptimization {
            NotSpecified = 0,
            SingleDomain = 1,
            MultiDomain = 2,
            MultiDomainHost = 3
}

Hierarchy

ObjectValueTypeEnum(IComparable, IFormattable, IConvertible)LoaderOptimization

Returned By

AppDomainSetup.LoaderOptimization, LoaderOptimizationAttribute.Value

Passed To

AppDomainSetup.LoaderOptimization, LoaderOptimizationAttribute.LoaderOptimizationAttribute()

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