Click or drag to resize

ExtensionsGetEquipmentTreeT Method (IPhysicalEntity, ListT)

Customize MACE to meet your Live-Virtual-Constructive Simulation and Training Requirements.

[This is preliminary documentation and is subject to change.]

Extension method that recursively searchs the entity and entire comm linked tree for a specific type and gets or add to a list of that type.

Namespace:  BSI.MACE
Assembly:  BSILib (in BSILib.dll) Version: 1.2.1.22047 (1.0.0.0)
Syntax
public static List<T> GetEquipmentTree<T>(
	this IPhysicalEntity thisEntity,
	List<T> equipmentList = null
)
where T : class

Parameters

thisEntity
Type: BSI.MACEIPhysicalEntity
The entity and (recursively) all subordinate entities.
equipmentList (Optional)
Type: System.Collections.GenericListT
Optional list to be added to. If no list is passed in then one is created.

Type Parameters

T
Type that dervives from IEquipment that will be searched for.

Return Value

Type: ListT
A list containing equipment of the specified type.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IPhysicalEntity. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
Usage: Dim list as List(Of EquipmentEWRadio) = MyEntity.GetEquipmentList(Of EquipmentEWRadio)()
See Also