Click or drag to resize

InheritanceExtensionsCreateClassInstanceT Method

Creates a class instance of the CAEX class and assigns the name to the instance.

Namespace: Aml.Engine.CAEX.Extensions
Assembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntax
public static CAEXBasicObject CreateClassInstance<T>(
	this IInstantiable<T> caexClass,
	string name
)
where T : CAEXObject

Parameters

caexClass  IInstantiableT
The instantiated CAEX class.
name  String
The new name.

Type Parameters

T
Type of the instantiated class.

Return Value

CAEXBasicObject
The created instance

Usage Note

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