Class DdiNodeExtensions
A static class containing DDI-specific extension methods useful for working with navigator nodes.
Inheritance
System.Object
DdiNodeExtensions
Namespace: Algenta.Colectica.ViewModel.Navigator
Assembly: Algenta.Colectica.ViewModel.dll
Syntax
public static class DdiNodeExtensions : object
Methods
FindNearestResourcePackage(Node)
Finds the nearest resource package to the specified node. The method walks up the specified node's parents. If it finds a ResourcePackage, that ResourcePackage is returned. If a DdiInstance is found, the first ResourcePackage in that DdiInstance is returned.
Declaration
public static ResourcePackage FindNearestResourcePackage(this Node node)
Parameters
Type | Name | Description |
---|---|---|
Node | node | The node for which a nearby ResourcePackage should be located. |
Returns
Type | Description |
---|---|
ResourcePackage | The ResourcePackage if one is found; otherwise |