Show / Hide Table of Contents

Class ModuleInfoGroupExtensions

Defines extension methods for the ModuleInfoGroup class.

Inheritance
System.Object
ModuleInfoGroupExtensions
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Sartorius.SAF.Presentation.Modularity
Assembly: Sartorius.SAF.Presentation.dll
Syntax
public static class ModuleInfoGroupExtensions

Methods

View Source

AddModule(ModuleInfoGroup, String, Type, String[])

Adds a new module that is statically referenced to the specified module info group.

Declaration
public static ModuleInfoGroup AddModule(this ModuleInfoGroup moduleInfoGroup, string moduleName, Type moduleType, params string[] dependsOn)
Parameters
Type Name Description
ModuleInfoGroup moduleInfoGroup

The group where to add the module info in.

System.String moduleName

The name for the module.

System.Type moduleType

The type for the module. This type should be a descendant of IModule.

System.String[] dependsOn

The names for the modules that this module depends on.

Returns
Type Description
ModuleInfoGroup

Returns the instance of the passed in module info group, to provide a fluid interface.

View Source

AddModule(ModuleInfoGroup, Type, String[])

Adds a new module that is statically referenced to the specified module info group.

Declaration
public static ModuleInfoGroup AddModule(this ModuleInfoGroup moduleInfoGroup, Type moduleType, params string[] dependsOn)
Parameters
Type Name Description
ModuleInfoGroup moduleInfoGroup

The group where to add the module info in.

System.Type moduleType

The type for the module. This type should be a descendant of IModule.

System.String[] dependsOn

The names for the modules that this module depends on.

Returns
Type Description
ModuleInfoGroup

Returns the instance of the passed in module info group, to provide a fluid interface.

Remarks

The name of the module will be the type name.

  • View Source
Back to top Generated by DocFX