The Clone method is intended to return a copy of the interface object. It is up to the interface implementer whether the clone is a shallow or deep copy. Please refer to the other interface documentation. A common implementation of this method creates the underlying object and then calls the Assign method.
Note that this method returns an IInterface and may need to be cast in order to assign it to another variable of a descendant interface type.
Namespace: CommonInterfaces
Delphi |
public |
Return Value
Type: IInterface
An example implementation from the TFactTemplate class in the Inference Engine Component Suite is given below: Delphi |
begin |