Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.Packages.InstallOrderAttribute Constructor

Defines the order in which to install classes (IInstallableModel) within this package.

Class: YetaWF.Core.Packages.InstallOrderAttribute
Namespace: YetaWF.Core.Packages
Assembly: YetaWF.Core

Syntax

public InstallOrderAttribute(
    Type type,
    int order = 0 );

Parameters

type

The type that should be installed.

order

This parameter defaults to the line number where the InstallOrderAttribute is used. It should not be explicitly provided, as it insures that InstallOrderAttribute are processed in the order they appear in the source code.

Remarks

All types listed are installed first, in the order of their InstallOrderAttributes. If a type is omitted it is installed last. If multiple types are omitted, their initialization order is undefined, but follows any types that are listed. This is used in a package's AssemblyInfo.cs file.

See Also YetaWF.Core.Packages.InstallOrderAttribute ClassYetaWF.Core Overview