Click or drag to resize

InheritanceExtensionsClassIsDerivedFromT(IClassWithBaseClassReferenceT, IClassWithBaseClassReferenceT) Method

Determines, if the specified class is directly or indirectly (across multiple generations) a descendant of the specified base class or identical to it. This method can be used, if the classes are distributed over different CAEX documents, the documents should be referenced by external references and alias references.

Namespace: Aml.Engine.CAEX.Extensions
Assembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntax
public static bool? ClassIsDerivedFrom<T>(
	this IClassWithBaseClassReference<T> classWithReference,
	IClassWithBaseClassReference<T> baseClass
)
where T : CAEXObject

Parameters

classWithReference  IClassWithBaseClassReferenceT
The class with reference.
baseClass  IClassWithBaseClassReferenceT
The base class.

Type Parameters

T
The type of the CAEX class.

Return Value

NullableBoolean
true if the class is derived, false if it is not. If no value is returned, some references could not be resolved to get the answer.

Usage Note

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