# IdSpan.UnsafeCreate(byte[]?, int)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.idspan/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.idspan/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core.Abstractions/IDs/IdSpan.cs#L145)

```csharp
public static IdSpan UnsafeCreate(byte[]? value, int hashCode)
```

Creates an instance, specifying both the hash code and the value.

### Parameters

- `value` (`byte[]?`): The underlying value.
- `hashCode` (`int`): The hash of the underlying value.

### Returns

An [IdSpan](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.idspan/) instance.
