Skip to content

Commit

Permalink
refactor: rename clone method
Browse files Browse the repository at this point in the history
  • Loading branch information
punker76 committed Mar 3, 2022
1 parent f46b793 commit 716fc8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/GongSolutions.WPF.DragDrop/DefaultDropHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ public virtual void Drop(IDropInfo dropInfo)
{
if (o is IDragItemCloneable cloneableItem)
{
obj2Insert = cloneableItem.CloneDragItem(dropInfo);
obj2Insert = cloneableItem.CloneItem(dropInfo);
}
else if (o is ICloneable cloneable)
{
Expand Down
2 changes: 1 addition & 1 deletion src/GongSolutions.WPF.DragDrop/IDragItemCloneable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ public interface IDragItemCloneable
/// </summary>
/// <param name="dropInfo">Object which contains several drop information.</param>
/// <returns>A new object that is a copy of this instance.</returns>
object CloneDragItem(IDropInfo dropInfo);
object CloneItem(IDropInfo dropInfo);
}
}

0 comments on commit 716fc8f

Please sign in to comment.