Table of Contents

Class ModuleExtensions

Namespace
Loehnert.Lisrt.Contracts.Extensions
Assembly
Loehnert.Lisrt.dll

Extensions for ILisrtModule.

public static class ModuleExtensions
Inheritance
ModuleExtensions
Inherited Members

Methods

GetFullName(ILisrtModule)

Gets the full name of ILisrtModule e.g. root.branch.leaf.

public static string GetFullName(this ILisrtModule module)

Parameters

module ILisrtModule

The ILisrtModule.

Returns

string

The full name.

GetLevel(ILisrtModule)

Gets the level of the module e.g.: 'root.branch.leaf' level of root = 0, level of leaf = 2.

public static int GetLevel(this ILisrtModule module)

Parameters

module ILisrtModule

The ILisrtModule.

Returns

int

Level (level of root is 0).

IsRoot(ILisrtModule)

Gets a value indicating whether the it is the root module of a ILisrtModule tree.

public static bool IsRoot(this ILisrtModule module)

Parameters

module ILisrtModule

The ILisrtModule to check.

Returns

bool

True if it is the root ILisrtModule instance.