# IsConstantExpression

> Performs a compile-time check on whether the provided argument is known to be constant by Burst.

## Definition

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

## IsConstantExpression\<T>(T)

Performs a compile-time check on whether the provided argument is known to be constant by Burst.

```csharp
public static bool IsConstantExpression<T>(T t) where T : unmanaged
```

### Parameters

**** (T): The value to check whether it is constant.

### Returns

| Type                                                          | Description                                                                 |
| ------------------------------------------------------------- | --------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if Burst knows at compile-time that it is a constant, false otherwise. |

## IsConstantExpression(void\*)

Performs a compile-time check on whether the provided argument is known to be constant by Burst.

```csharp
public static bool IsConstantExpression(void* t)
```

### Parameters

**** (\[void\*]\(https\://learn.microsoft.com/dotnet/api/system.void)): The value to check whether it is constant.

### Returns

| Type                                                          | Description                                                                 |
| ------------------------------------------------------------- | --------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if Burst knows at compile-time that it is a constant, false otherwise. |
