# ExceptWith

> Removes the values from this set which are also present in another collection.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Collections.LowLevel.Unsafe](/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe.md)
* **Assembly:** UnityEngine.ManagedKernelModule

## ExceptWith\<T>(NativeHashSet\<T>, UnsafeHashSet\<T>)

Removes the values from this set which are also present in another collection.

```csharp
public static void ExceptWith<T>(this ref NativeHashSet<T> container, UnsafeHashSet<T> other) where T : unmanaged, IEquatable<T>
```

### Parameters

**** (\[NativeHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/nativehashset1)): The set to remove values from.**** (\[UnsafeHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafehashset1)): The collection to compare with.

## ExceptWith\<T>(NativeHashSet\<T>, ReadOnly)

Removes the values from this set which are also present in another collection.

```csharp
public static void ExceptWith<T>(this ref NativeHashSet<T> container, UnsafeHashSet<T>.ReadOnly other) where T : unmanaged, IEquatable<T>
```

### Parameters

**** (\[NativeHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/nativehashset1)): The set to remove values from.**** (\[ReadOnly]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafehashset1/readonly)): The collection to compare with.

## ExceptWith\<T>(NativeHashSet\<T>, UnsafeParallelHashSet\<T>)

Removes the values from this set which are also present in another collection.

```csharp
public static void ExceptWith<T>(this ref NativeHashSet<T> container, UnsafeParallelHashSet<T> other) where T : unmanaged, IEquatable<T>
```

### Parameters

**** (\[NativeHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/nativehashset1)): The set to remove values from.**** (\[UnsafeParallelHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeparallelhashset1)): The collection to compare with.

## ExceptWith\<T>(NativeHashSet\<T>, ReadOnly)

Removes the values from this set which are also present in another collection.

```csharp
public static void ExceptWith<T>(this ref NativeHashSet<T> container, UnsafeParallelHashSet<T>.ReadOnly other) where T : unmanaged, IEquatable<T>
```

### Parameters

**** (\[NativeHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/nativehashset1)): The set to remove values from.**** (\[ReadOnly]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeparallelhashset1/readonly)): The collection to compare with.

## ExceptWith\<T>(NativeHashSet\<T>, UnsafeList\<T>)

Removes the values from this set which are also present in another collection.

```csharp
public static void ExceptWith<T>(this ref NativeHashSet<T> container, UnsafeList<T> other) where T : unmanaged, IEquatable<T>
```

### Parameters

**** (\[NativeHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/nativehashset1)): The set to remove values from.**** (\[UnsafeList\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafelist1)): The collection to compare with.

## ExceptWith\<T>(NativeParallelHashSet\<T>, UnsafeHashSet\<T>)

Removes the values from this set which are also present in another collection.

```csharp
public static void ExceptWith<T>(this ref NativeParallelHashSet<T> container, UnsafeHashSet<T> other) where T : unmanaged, IEquatable<T>
```

### Parameters

**** (\[NativeParallelHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/nativeparallelhashset1)): The set to remove values from.**** (\[UnsafeHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafehashset1)): The collection to compare with.

## ExceptWith\<T>(NativeParallelHashSet\<T>, ReadOnly)

Removes the values from this set which are also present in another collection.

```csharp
public static void ExceptWith<T>(this ref NativeParallelHashSet<T> container, UnsafeHashSet<T>.ReadOnly other) where T : unmanaged, IEquatable<T>
```

### Parameters

**** (\[NativeParallelHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/nativeparallelhashset1)): The set to remove values from.**** (\[ReadOnly]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafehashset1/readonly)): The collection to compare with.

## ExceptWith\<T>(NativeParallelHashSet\<T>, UnsafeParallelHashSet\<T>)

Removes the values from this set which are also present in another collection.

```csharp
public static void ExceptWith<T>(this ref NativeParallelHashSet<T> container, UnsafeParallelHashSet<T> other) where T : unmanaged, IEquatable<T>
```

### Parameters

**** (\[NativeParallelHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/nativeparallelhashset1)): The set to remove values from.**** (\[UnsafeParallelHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeparallelhashset1)): The collection to compare with.

## ExceptWith\<T>(NativeParallelHashSet\<T>, ReadOnly)

Removes the values from this set which are also present in another collection.

```csharp
public static void ExceptWith<T>(this ref NativeParallelHashSet<T> container, UnsafeParallelHashSet<T>.ReadOnly other) where T : unmanaged, IEquatable<T>
```

### Parameters

**** (\[NativeParallelHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/nativeparallelhashset1)): The set to remove values from.**** (\[ReadOnly]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeparallelhashset1/readonly)): The collection to compare with.

## ExceptWith\<T>(NativeParallelHashSet\<T>, UnsafeList\<T>)

Removes the values from this set which are also present in another collection.

```csharp
public static void ExceptWith<T>(this ref NativeParallelHashSet<T> container, UnsafeList<T> other) where T : unmanaged, IEquatable<T>
```

### Parameters

**** (\[NativeParallelHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/nativeparallelhashset1)): The set to remove values from.**** (\[UnsafeList\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafelist1)): The collection to compare with.

## ExceptWith\<T>(UnsafeHashSet\<T>, FixedList128Bytes\<T>)

Removes the values from this set which are also present in another collection.

```csharp
public static void ExceptWith<T>(this ref UnsafeHashSet<T> container, FixedList128Bytes<T> other) where T : unmanaged, IEquatable<T>
```

### Parameters

**** (\[UnsafeHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafehashset1)): The set to remove values from.**** (\[FixedList128Bytes\<T>]\(/engine/6000.7/script-reference/unity/collections/fixedlist128bytes1)): The collection to compare with.

## ExceptWith\<T>(UnsafeHashSet\<T>, FixedList32Bytes\<T>)

Removes the values from this set which are also present in another collection.

```csharp
public static void ExceptWith<T>(this ref UnsafeHashSet<T> container, FixedList32Bytes<T> other) where T : unmanaged, IEquatable<T>
```

### Parameters

**** (\[UnsafeHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafehashset1)): The set to remove values from.**** (\[FixedList32Bytes\<T>]\(/engine/6000.7/script-reference/unity/collections/fixedlist32bytes1)): The collection to compare with.

## ExceptWith\<T>(UnsafeHashSet\<T>, FixedList4096Bytes\<T>)

Removes the values from this set which are also present in another collection.

```csharp
public static void ExceptWith<T>(this ref UnsafeHashSet<T> container, FixedList4096Bytes<T> other) where T : unmanaged, IEquatable<T>
```

### Parameters

**** (\[UnsafeHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafehashset1)): The set to remove values from.**** (\[FixedList4096Bytes\<T>]\(/engine/6000.7/script-reference/unity/collections/fixedlist4096bytes1)): The collection to compare with.

## ExceptWith\<T>(UnsafeHashSet\<T>, FixedList512Bytes\<T>)

Removes the values from this set which are also present in another collection.

```csharp
public static void ExceptWith<T>(this ref UnsafeHashSet<T> container, FixedList512Bytes<T> other) where T : unmanaged, IEquatable<T>
```

### Parameters

**** (\[UnsafeHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafehashset1)): The set to remove values from.**** (\[FixedList512Bytes\<T>]\(/engine/6000.7/script-reference/unity/collections/fixedlist512bytes1)): The collection to compare with.

## ExceptWith\<T>(UnsafeHashSet\<T>, FixedList64Bytes\<T>)

Removes the values from this set which are also present in another collection.

```csharp
public static void ExceptWith<T>(this ref UnsafeHashSet<T> container, FixedList64Bytes<T> other) where T : unmanaged, IEquatable<T>
```

### Parameters

**** (\[UnsafeHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafehashset1)): The set to remove values from.**** (\[FixedList64Bytes\<T>]\(/engine/6000.7/script-reference/unity/collections/fixedlist64bytes1)): The collection to compare with.

## ExceptWith\<T>(UnsafeHashSet\<T>, NativeArray\<T>)

Removes the values from this set which are also present in another collection.

```csharp
public static void ExceptWith<T>(this ref UnsafeHashSet<T> container, NativeArray<T> other) where T : unmanaged, IEquatable<T>
```

### Parameters

**** (\[UnsafeHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafehashset1)): The set to remove values from.**** (\[NativeArray\<T>]\(/engine/6000.7/script-reference/unity/collections/nativearray1)): The collection to compare with.

## ExceptWith\<T>(UnsafeHashSet\<T>, NativeHashSet\<T>)

Removes the values from this set which are also present in another collection.

```csharp
public static void ExceptWith<T>(this ref UnsafeHashSet<T> container, NativeHashSet<T> other) where T : unmanaged, IEquatable<T>
```

### Parameters

**** (\[UnsafeHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafehashset1)): The set to remove values from.**** (\[NativeHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/nativehashset1)): The collection to compare with.

## ExceptWith\<T>(UnsafeHashSet\<T>, ReadOnly)

Removes the values from this set which are also present in another collection.

```csharp
public static void ExceptWith<T>(this ref UnsafeHashSet<T> container, NativeHashSet<T>.ReadOnly other) where T : unmanaged, IEquatable<T>
```

### Parameters

**** (\[UnsafeHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafehashset1)): The set to remove values from.**** (\[ReadOnly]\(/engine/6000.7/script-reference/unity/collections/nativehashset1/readonly)): The collection to compare with.

## ExceptWith\<T>(UnsafeHashSet\<T>, UnsafeHashSet\<T>)

Removes the values from this set which are also present in another collection.

```csharp
public static void ExceptWith<T>(this ref UnsafeHashSet<T> container, UnsafeHashSet<T> other) where T : unmanaged, IEquatable<T>
```

### Parameters

**** (\[UnsafeHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafehashset1)): The set to remove values from.**** (\[UnsafeHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafehashset1)): The collection to compare with.

## ExceptWith\<T>(UnsafeHashSet\<T>, ReadOnly)

Removes the values from this set which are also present in another collection.

```csharp
public static void ExceptWith<T>(this ref UnsafeHashSet<T> container, UnsafeHashSet<T>.ReadOnly other) where T : unmanaged, IEquatable<T>
```

### Parameters

**** (\[UnsafeHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafehashset1)): The set to remove values from.**** (\[ReadOnly]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafehashset1/readonly)): The collection to compare with.

## ExceptWith\<T>(UnsafeHashSet\<T>, NativeParallelHashSet\<T>)

Removes the values from this set which are also present in another collection.

```csharp
public static void ExceptWith<T>(this ref UnsafeHashSet<T> container, NativeParallelHashSet<T> other) where T : unmanaged, IEquatable<T>
```

### Parameters

**** (\[UnsafeHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafehashset1)): The set to remove values from.**** (\[NativeParallelHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/nativeparallelhashset1)): The collection to compare with.

## ExceptWith\<T>(UnsafeHashSet\<T>, ReadOnly)

Removes the values from this set which are also present in another collection.

```csharp
public static void ExceptWith<T>(this ref UnsafeHashSet<T> container, NativeParallelHashSet<T>.ReadOnly other) where T : unmanaged, IEquatable<T>
```

### Parameters

**** (\[UnsafeHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafehashset1)): The set to remove values from.**** (\[ReadOnly]\(/engine/6000.7/script-reference/unity/collections/nativeparallelhashset1/readonly)): The collection to compare with.

## ExceptWith\<T>(UnsafeHashSet\<T>, UnsafeParallelHashSet\<T>)

Removes the values from this set which are also present in another collection.

```csharp
public static void ExceptWith<T>(this ref UnsafeHashSet<T> container, UnsafeParallelHashSet<T> other) where T : unmanaged, IEquatable<T>
```

### Parameters

**** (\[UnsafeHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafehashset1)): The set to remove values from.**** (\[UnsafeParallelHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeparallelhashset1)): The collection to compare with.

## ExceptWith\<T>(UnsafeHashSet\<T>, ReadOnly)

Removes the values from this set which are also present in another collection.

```csharp
public static void ExceptWith<T>(this ref UnsafeHashSet<T> container, UnsafeParallelHashSet<T>.ReadOnly other) where T : unmanaged, IEquatable<T>
```

### Parameters

**** (\[UnsafeHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafehashset1)): The set to remove values from.**** (\[ReadOnly]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeparallelhashset1/readonly)): The collection to compare with.

## ExceptWith\<T>(UnsafeHashSet\<T>, NativeList\<T>)

Removes the values from this set which are also present in another collection.

```csharp
public static void ExceptWith<T>(this ref UnsafeHashSet<T> container, NativeList<T> other) where T : unmanaged, IEquatable<T>
```

### Parameters

**** (\[UnsafeHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafehashset1)): The set to remove values from.**** (\[NativeList\<T>]\(/engine/6000.7/script-reference/unity/collections/nativelist1)): The collection to compare with.

## ExceptWith\<T>(UnsafeHashSet\<T>, UnsafeList\<T>)

Removes the values from this set which are also present in another collection.

```csharp
public static void ExceptWith<T>(this ref UnsafeHashSet<T> container, UnsafeList<T> other) where T : unmanaged, IEquatable<T>
```

### Parameters

**** (\[UnsafeHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafehashset1)): The set to remove values from.**** (\[UnsafeList\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafelist1)): The collection to compare with.

## ExceptWith\<T>(UnsafeParallelHashSet\<T>, FixedList128Bytes\<T>)

Removes the values from this set which are also present in another collection.

```csharp
public static void ExceptWith<T>(this ref UnsafeParallelHashSet<T> container, FixedList128Bytes<T> other) where T : unmanaged, IEquatable<T>
```

### Parameters

**** (\[UnsafeParallelHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeparallelhashset1)): The set to remove values from.**** (\[FixedList128Bytes\<T>]\(/engine/6000.7/script-reference/unity/collections/fixedlist128bytes1)): The collection to compare with.

## ExceptWith\<T>(UnsafeParallelHashSet\<T>, FixedList32Bytes\<T>)

Removes the values from this set which are also present in another collection.

```csharp
public static void ExceptWith<T>(this ref UnsafeParallelHashSet<T> container, FixedList32Bytes<T> other) where T : unmanaged, IEquatable<T>
```

### Parameters

**** (\[UnsafeParallelHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeparallelhashset1)): The set to remove values from.**** (\[FixedList32Bytes\<T>]\(/engine/6000.7/script-reference/unity/collections/fixedlist32bytes1)): The collection to compare with.

## ExceptWith\<T>(UnsafeParallelHashSet\<T>, FixedList4096Bytes\<T>)

Removes the values from this set which are also present in another collection.

```csharp
public static void ExceptWith<T>(this ref UnsafeParallelHashSet<T> container, FixedList4096Bytes<T> other) where T : unmanaged, IEquatable<T>
```

### Parameters

**** (\[UnsafeParallelHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeparallelhashset1)): The set to remove values from.**** (\[FixedList4096Bytes\<T>]\(/engine/6000.7/script-reference/unity/collections/fixedlist4096bytes1)): The collection to compare with.

## ExceptWith\<T>(UnsafeParallelHashSet\<T>, FixedList512Bytes\<T>)

Removes the values from this set which are also present in another collection.

```csharp
public static void ExceptWith<T>(this ref UnsafeParallelHashSet<T> container, FixedList512Bytes<T> other) where T : unmanaged, IEquatable<T>
```

### Parameters

**** (\[UnsafeParallelHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeparallelhashset1)): The set to remove values from.**** (\[FixedList512Bytes\<T>]\(/engine/6000.7/script-reference/unity/collections/fixedlist512bytes1)): The collection to compare with.

## ExceptWith\<T>(UnsafeParallelHashSet\<T>, FixedList64Bytes\<T>)

Removes the values from this set which are also present in another collection.

```csharp
public static void ExceptWith<T>(this ref UnsafeParallelHashSet<T> container, FixedList64Bytes<T> other) where T : unmanaged, IEquatable<T>
```

### Parameters

**** (\[UnsafeParallelHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeparallelhashset1)): The set to remove values from.**** (\[FixedList64Bytes\<T>]\(/engine/6000.7/script-reference/unity/collections/fixedlist64bytes1)): The collection to compare with.

## ExceptWith\<T>(UnsafeParallelHashSet\<T>, NativeArray\<T>)

Removes the values from this set which are also present in another collection.

```csharp
public static void ExceptWith<T>(this ref UnsafeParallelHashSet<T> container, NativeArray<T> other) where T : unmanaged, IEquatable<T>
```

### Parameters

**** (\[UnsafeParallelHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeparallelhashset1)): The set to remove values from.**** (\[NativeArray\<T>]\(/engine/6000.7/script-reference/unity/collections/nativearray1)): The collection to compare with.

## ExceptWith\<T>(UnsafeParallelHashSet\<T>, NativeHashSet\<T>)

Removes the values from this set which are also present in another collection.

```csharp
public static void ExceptWith<T>(this ref UnsafeParallelHashSet<T> container, NativeHashSet<T> other) where T : unmanaged, IEquatable<T>
```

### Parameters

**** (\[UnsafeParallelHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeparallelhashset1)): The set to remove values from.**** (\[NativeHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/nativehashset1)): The collection to compare with.

## ExceptWith\<T>(UnsafeParallelHashSet\<T>, ReadOnly)

Removes the values from this set which are also present in another collection.

```csharp
public static void ExceptWith<T>(this ref UnsafeParallelHashSet<T> container, NativeHashSet<T>.ReadOnly other) where T : unmanaged, IEquatable<T>
```

### Parameters

**** (\[UnsafeParallelHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeparallelhashset1)): The set to remove values from.**** (\[ReadOnly]\(/engine/6000.7/script-reference/unity/collections/nativehashset1/readonly)): The collection to compare with.

## ExceptWith\<T>(UnsafeParallelHashSet\<T>, UnsafeHashSet\<T>)

Removes the values from this set which are also present in another collection.

```csharp
public static void ExceptWith<T>(this ref UnsafeParallelHashSet<T> container, UnsafeHashSet<T> other) where T : unmanaged, IEquatable<T>
```

### Parameters

**** (\[UnsafeParallelHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeparallelhashset1)): The set to remove values from.**** (\[UnsafeHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafehashset1)): The collection to compare with.

## ExceptWith\<T>(UnsafeParallelHashSet\<T>, ReadOnly)

Removes the values from this set which are also present in another collection.

```csharp
public static void ExceptWith<T>(this ref UnsafeParallelHashSet<T> container, UnsafeHashSet<T>.ReadOnly other) where T : unmanaged, IEquatable<T>
```

### Parameters

**** (\[UnsafeParallelHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeparallelhashset1)): The set to remove values from.**** (\[ReadOnly]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafehashset1/readonly)): The collection to compare with.

## ExceptWith\<T>(UnsafeParallelHashSet\<T>, NativeParallelHashSet\<T>)

Removes the values from this set which are also present in another collection.

```csharp
public static void ExceptWith<T>(this ref UnsafeParallelHashSet<T> container, NativeParallelHashSet<T> other) where T : unmanaged, IEquatable<T>
```

### Parameters

**** (\[UnsafeParallelHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeparallelhashset1)): The set to remove values from.**** (\[NativeParallelHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/nativeparallelhashset1)): The collection to compare with.

## ExceptWith\<T>(UnsafeParallelHashSet\<T>, ReadOnly)

Removes the values from this set which are also present in another collection.

```csharp
public static void ExceptWith<T>(this ref UnsafeParallelHashSet<T> container, NativeParallelHashSet<T>.ReadOnly other) where T : unmanaged, IEquatable<T>
```

### Parameters

**** (\[UnsafeParallelHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeparallelhashset1)): The set to remove values from.**** (\[ReadOnly]\(/engine/6000.7/script-reference/unity/collections/nativeparallelhashset1/readonly)): The collection to compare with.

## ExceptWith\<T>(UnsafeParallelHashSet\<T>, UnsafeParallelHashSet\<T>)

Removes the values from this set which are also present in another collection.

```csharp
public static void ExceptWith<T>(this ref UnsafeParallelHashSet<T> container, UnsafeParallelHashSet<T> other) where T : unmanaged, IEquatable<T>
```

### Parameters

**** (\[UnsafeParallelHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeparallelhashset1)): The set to remove values from.**** (\[UnsafeParallelHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeparallelhashset1)): The collection to compare with.

## ExceptWith\<T>(UnsafeParallelHashSet\<T>, ReadOnly)

Removes the values from this set which are also present in another collection.

```csharp
public static void ExceptWith<T>(this ref UnsafeParallelHashSet<T> container, UnsafeParallelHashSet<T>.ReadOnly other) where T : unmanaged, IEquatable<T>
```

### Parameters

**** (\[UnsafeParallelHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeparallelhashset1)): The set to remove values from.**** (\[ReadOnly]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeparallelhashset1/readonly)): The collection to compare with.

## ExceptWith\<T>(UnsafeParallelHashSet\<T>, NativeList\<T>)

Removes the values from this set which are also present in another collection.

```csharp
public static void ExceptWith<T>(this ref UnsafeParallelHashSet<T> container, NativeList<T> other) where T : unmanaged, IEquatable<T>
```

### Parameters

**** (\[UnsafeParallelHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeparallelhashset1)): The set to remove values from.**** (\[NativeList\<T>]\(/engine/6000.7/script-reference/unity/collections/nativelist1)): The collection to compare with.

## ExceptWith\<T>(UnsafeParallelHashSet\<T>, UnsafeList\<T>)

Removes the values from this set which are also present in another collection.

```csharp
public static void ExceptWith<T>(this ref UnsafeParallelHashSet<T> container, UnsafeList<T> other) where T : unmanaged, IEquatable<T>
```

### Parameters

**** (\[UnsafeParallelHashSet\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeparallelhashset1)): The set to remove values from.**** (\[UnsafeList\<T>]\(/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafelist1)): The collection to compare with.
