public void Dispose(
#if ENABLE_UNITY_COLLECTIONS_CHECKS
            ref AtomicSafetyHandle atomicSafetyHandle
#endif
            )
        {
#if ENABLE_UNITY_COLLECTIONS_CHECKS
            UnsafeCollectionsHelpers.IsValidAllocatorAndThrow <Container>(Allocator);
            DisposeSentinel.Dispose(ref atomicSafetyHandle, ref _disposeSentinel);
#endif
            UnsafeCollectionsHelpers.DisposeAllocator <Container>(ref _allocator);
        }
 public void Dispose()
 {
     UnsafeCollectionsHelpers.DisposeAllocator <Container>(ref _allocator);
 }