# Equals

> Determines whether the current wire represents the same connection as another wire.

## Definition

* **Type:** Method
* **Namespace:** [Unity.GraphToolkit.Editor](/engine/6000.6/script-reference/unity/graphtoolkit/editor.md)
* **Assembly:** UnityEditor

## Equals(Wire)

Determines whether the current wire represents the same connection as another wire.

```csharp
public bool Equals(Wire other)
```

### Parameters

**** (\[Wire]\(/engine/6000.6/script-reference/unity/graphtoolkit/editor/wire)): The wire to compare with the current instance.

### Returns

| Type                                                          | Description                                                                |
| ------------------------------------------------------------- | -------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | true if both wires share the same output and input port; otherwise, false. |

## Equals(Object)

Determines whether the current wire is equal to the specified object.

```csharp
public override bool Equals(object obj)
```

### Parameters

**** (\[Object]\(https\://learn.microsoft.com/dotnet/api/system.object)): The object to compare with the current wire.

### Returns

| Type                                                          | Description                                                                                                                                                             |
| ------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | true if `obj` is a [Wire](/engine/6000.6/script-reference/unity/graphtoolkit/editor/wire.md) that represents the same connection as the current wire; otherwise, false. |
