Interface
IRadCloneable

Provides notifications during reflection-based cloning and field copying operations.

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
public interface IRadCloneable : ICloneable

Inherited Members ICloneable.Clone()

Methods

OnCloneComplete()

Called after a complete cloning operation has finished, including field copying and any intermediate notifications.

Declaration

cs-api-definition
void OnCloneComplete()

Remarks

This method is invoked by Clone<T>(T) as the final step in the cloning process, after all fields have been copied and OnFieldsCopied() has been called. Implementing classes can use this notification to:

  • Perform final initialization that requires all fields to be set
  • Establish connections or relationships with other objects
  • Execute validation logic on the complete cloned state
  • Initialize transient state that shouldn't be copied

This is the last method called during the clone operation, making it ideal for final setup tasks.

OnFieldsCopied()

Called after fields have been copied to this object during a reflection-based field copying operation.

Declaration

cs-api-definition
void OnFieldsCopied()

Remarks

This method is invoked by CopyFields<T>(T, T) after all compatible fields have been copied from a source object. Implementing classes can use this notification to:

  • Update calculated or derived properties
  • Reinitialize collections or event handlers
  • Perform validation or consistency checks
  • Execute any logic that depends on the complete field state

This method is called before OnCloneComplete() in clone operations, allowing for staged initialization logic.

In this article
DefinitionMethodsOnCloneComplete()OnFieldsCopied()
Not finding the help you need?
Contact Support