# AssumeRangeAttribute

> Assume that an integer is in the signed closed interval [min..max].

## Definition

* **Type:** Constructor
* **Namespace:** [Unity.Burst.CompilerServices](/engine/6000.7/script-reference/unity/burst/compilerservices.md)
* **Assembly:** UnityEngine.BurstModule

## AssumeRangeAttribute(int, int)

Assume that an integer is in the signed closed interval \[min..max].

```csharp
public AssumeRangeAttribute(int min, int max)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The inclusive minimum value.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The inclusive maximum value.

## AssumeRangeAttribute(uint, uint)

Assume that an integer is in the unsigned closed interval \[min..max].

```csharp
public AssumeRangeAttribute(uint min, uint max)
```

### Parameters

**** (\[uint]\(https\://learn.microsoft.com/dotnet/api/system.uint32)): The inclusive minimum value.**** (\[uint]\(https\://learn.microsoft.com/dotnet/api/system.uint32)): The inclusive maximum value.

## AssumeRangeAttribute(long, long)

Assume that an integer is in the signed closed interval \[min..max].

```csharp
public AssumeRangeAttribute(long min, long max)
```

### Parameters

**** (\[long]\(https\://learn.microsoft.com/dotnet/api/system.int64)): The inclusive minimum value.**** (\[long]\(https\://learn.microsoft.com/dotnet/api/system.int64)): The inclusive maximum value.

## AssumeRangeAttribute(ulong, ulong)

Assume that an integer is in the unsigned closed interval \[min..max].

```csharp
public AssumeRangeAttribute(ulong min, ulong max)
```

### Parameters

**** (\[ulong]\(https\://learn.microsoft.com/dotnet/api/system.uint64)): The inclusive minimum value.**** (\[ulong]\(https\://learn.microsoft.com/dotnet/api/system.uint64)): The inclusive maximum value.
