# CopyFilePattern Methods

- Package: [Aspire.Hosting.JavaScript](/reference/api/csharp/aspire.hosting.javascript.md)
- Type: [CopyFilePattern](/reference/api/csharp/aspire.hosting.javascript/copyfilepattern.md)
- Kind: `Methods`
- Members: `8`

Represents a file pattern for copying dependency files in a Dockerfile.

## <Clone>$

- Name: `<Clone>$`
- Returns: [CopyFilePattern](/reference/api/csharp/aspire.hosting.javascript/copyfilepattern.md)

```csharp
public record CopyFilePattern
{
    public CopyFilePattern <Clone>$()
    {
        // ...
    }
}
```

## Deconstruct(string, string)

- Name: `Deconstruct(string, string)`

```csharp
public record CopyFilePattern
{
    public void Deconstruct(
        out string Source,
        out string Destination)
    {
        // ...
    }
}
```

## Parameters

- `Source` (`string`)
- `Destination` (`string`)

## Equals(object?)

- Name: `Equals(object?)`
- Modifiers: `override`
- Returns: `bool`

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

```csharp
public record CopyFilePattern
{
    public override bool Equals(
        object? obj)
    {
        // ...
    }
}
```

## Parameters

- `obj` (`object?`)
  The object to compare with the current object.

## Returns

`bool` -- `true` if the specified object is equal to the current object; otherwise, `false`.

## Equals(CopyFilePattern?)

- Name: `Equals(CopyFilePattern?)`
- Returns: `bool`

Indicates whether the current object is equal to another object of the same type.

```csharp
public record CopyFilePattern
{
    public bool Equals(
        CopyFilePattern? other)
    {
        // ...
    }
}
```

## Parameters

- `other` ([CopyFilePattern?](/reference/api/csharp/aspire.hosting.javascript/copyfilepattern.md))
  An object to compare with this object.

## Returns

`bool` -- `true` if the current object is equal to the `other` parameter; otherwise, `false`.

## GetHashCode

- Name: `GetHashCode`
- Modifiers: `override`
- Returns: `int`

Serves as the default hash function.

```csharp
public record CopyFilePattern
{
    public override int GetHashCode()
    {
        // ...
    }
}
```

## Returns

`int` -- A hash code for the current object.

## op_Equality(CopyFilePattern?, CopyFilePattern?)

- Name: `op_Equality(CopyFilePattern?, CopyFilePattern?)`
- Modifiers: `static`
- Returns: `bool`

```csharp
public record CopyFilePattern
{
    public static bool operator ==(
        CopyFilePattern? left,
        CopyFilePattern? right)
    {
        // ...
    }
}
```

## Parameters

- `left` ([CopyFilePattern?](/reference/api/csharp/aspire.hosting.javascript/copyfilepattern.md))
- `right` ([CopyFilePattern?](/reference/api/csharp/aspire.hosting.javascript/copyfilepattern.md))

## op_Inequality(CopyFilePattern?, CopyFilePattern?)

- Name: `op_Inequality(CopyFilePattern?, CopyFilePattern?)`
- Modifiers: `static`
- Returns: `bool`

```csharp
public record CopyFilePattern
{
    public static bool operator !=(
        CopyFilePattern? left,
        CopyFilePattern? right)
    {
        // ...
    }
}
```

## Parameters

- `left` ([CopyFilePattern?](/reference/api/csharp/aspire.hosting.javascript/copyfilepattern.md))
- `right` ([CopyFilePattern?](/reference/api/csharp/aspire.hosting.javascript/copyfilepattern.md))

## ToString

- Name: `ToString`
- Modifiers: `override`
- Returns: `string`

Returns a string that represents the current object.

```csharp
public record CopyFilePattern
{
    public override string ToString()
    {
        // ...
    }
}
```

## Returns

`string` -- A string that represents the current object.
