Location: Symbol Reference > Classes > TJwAutoPointer Class > TJwAutoPointer Methods > CreateInstance Method > TJwAutoPointer.CreateInstance Method (TClass)
JWSCL Documentation
TJwAutoPointer.CreateInstance Method (TClass)
class function CreateInstance(const ClassReference: TClass): IJwAutoPointer; overload;
const ClassReference: TClass 
defines the class type which is to be created  

Returns an auto pointer interface that is resposible for auto destruction.

CreateInstance creates a new auto pointer class instance and also creates the given class with a default constructor (no parameters). Use instead Wrap if you cannot use standard constructor or your class does not support a standard constructor.

Copyright (c) 2010. All rights reserved.
This help was created by Doc-O-Matic sponsored by toolsfactory software inc.
What do you think about this topic? Send feedback!