New to Telerik UI for WinFormsStart a free 30-day trial

IRadCloneable

Interface

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

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

C#
public interface IRadCloneable : ICloneable

Inherited Members ICloneable.Clone()

Methods

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

C#
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.

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

C#
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