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 Valid OnMethod ![]() |