 | 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.ExtensionsAssembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntaxpublic static bool? ClassIsDerivedFrom<T>(
this IClassWithBaseClassReference<T> classWithReference,
IClassWithBaseClassReference<T> baseClass
)
where T : CAEXObject
<ExtensionAttribute>
Public Shared Function ClassIsDerivedFrom(Of T As CAEXObject) (
classWithReference As IClassWithBaseClassReference(Of T),
baseClass As IClassWithBaseClassReference(Of T)
) As Boolean?
public:
[ExtensionAttribute]
generic<typename T>
where T : CAEXObject
static Nullable<bool> ClassIsDerivedFrom(
IClassWithBaseClassReference<T>^ classWithReference,
IClassWithBaseClassReference<T>^ baseClass
)
Parameters
- classWithReference IClassWithBaseClassReferenceT
- The class with reference.
- baseClass IClassWithBaseClassReferenceT
- The base class.
Type Parameters
- T
- The type of the CAEX class.
Return Value
NullableBooleantrue 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