 | InheritanceExtensionsCreateClassInstanceT Method |
Creates a class instance of the CAEX class and assigns the name to the instance.
Namespace: Aml.Engine.CAEX.ExtensionsAssembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntaxpublic static CAEXBasicObject CreateClassInstance<T>(
this IInstantiable<T> caexClass,
string name
)
where T : CAEXObject
<ExtensionAttribute>
Public Shared Function CreateClassInstance(Of T As CAEXObject) (
caexClass As IInstantiable(Of T),
name As String
) As CAEXBasicObject
public:
[ExtensionAttribute]
generic<typename T>
where T : CAEXObject
static CAEXBasicObject^ CreateClassInstance(
IInstantiable<T>^ caexClass,
String^ name
)
Parameters
- caexClass IInstantiableT
- The instantiated CAEX class.
- name String
- The new name.
Type Parameters
- T
- Type of the instantiated class.
Return Value
CAEXBasicObjectThe 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