Click or drag to resize

ObjectWithBaseClassInheritedElementsTInheritedElement Method

Gets a collection of objects of the defined InheritedElement-Type that are inherited from base classes.

Namespace: Aml.Engine.CAEX.Extensions
Assembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntax
public static IEnumerable<TInheritedElement> InheritedElements<TInheritedElement>(
	this IClassWithBaseClassReference classWithBaseClass,
	bool includeSelf = true
)
where TInheritedElement : CAEXBasicObject

Parameters

classWithBaseClass  IClassWithBaseClassReference
the base class containing the element
includeSelf  Boolean  (Optional)
if set to true the own elements are included.

Type Parameters

TInheritedElement
The type of the inherited element.

Return Value

IEnumerableTInheritedElement
An enumeration of all inherited elements.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IClassWithBaseClassReference. 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).
See Also