Equals() public final method

public final Equals ( object obj ) : bool
obj object
return bool
        // A coercion method for the property
        private static object CalculateIsMouseDirectlyOverItem(DependencyObject item, object value)
        {
            // This method is called when the IsMouseDirectlyOver property is being calculated
            // for a TreeViewItem.

            if (item.Equals(_currentItem))
            {
                return true;
            }
            else
            {
                return false;
            }
        }
 private static bool IsDragging(DependencyObject control)
 {
     return control.Equals(draggingControl);
 }