# Version

> This allocator's version number.

## Definition

* **Type:** Field
* **Namespace:** [Unity.Collections](/engine/6000.7/script-reference/unity/collections.md)
* **Assembly:** UnityEngine.ManagedKernelModule

```csharp
public ushort Version
```

### Remarks

An allocator function is uniquely identified by its "combination" of [AllocatorManager.AllocatorHandle.Index](/engine/6000.7/script-reference/unity/collections/allocatormanager/allocatorhandle/index.md) and [AllocatorManager.AllocatorHandle.Version](/engine/6000.7/script-reference/unity/collections/allocatormanager/allocatorhandle/version.md) together: each index has a version number that starts at 0; the version number is incremented each time the allocator is invalidated.  Only the lower 15 bits of Version is in use because when allocator version is larger than 0x7FFF, allocator.ToAllocator returns a negative value which causes problem when comparing to Allocator.None.
