Location: Symbol Reference > Classes > TJwAutoPointer Class > TJwAutoPointer Methods > Wrap Method > TJwAutoPointer.Wrap Method (TObject)
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwAutoPointer.Wrap Method (TObject)
Pascal
class function Wrap(const Instance: TObject): IJwAutoPointer; overload;
Parameters 
Description 
const Instance: TObject 
defines the class instance that will be automatically destroyed  

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

AutoPointer

Wrap wraps an existing class instance for auto pointer desctruction. When the returned auto pointer interface goes out of scope the given instance will be destroyed.

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!