Interface for data objects that are able to create their full binary copy.
Example
exportclass MyClass implements IMyClass, ICloneable {
constructor() { };
public clone(): any {
var cloneObj = new (<any>this.constructor());
// Copy every attribute from this to cloneObj here.
...
return cloneObj;
}
}
Interface for data objects that are able to create their full binary copy.
Example
export class MyClass implements IMyClass, ICloneable { constructor() { }; public clone(): any { var cloneObj = new (<any>this.constructor()); // Copy every attribute from this to cloneObj here. ... return cloneObj; } }