public unsafe bool GetByTypeIndex(int typeIndex, out DynamicComponentTypeHandle typeHandle)
        {
            Debug.Assert(typeIndex != 0);
            for (int i = 0; i < m_Length; i++)
            {
                DynamicComponentTypeHandle element = UnsafeUtility.ReadArrayElement <DynamicComponentTypeHandle>(m_Buffer, i);
                if (element.GetTypeIndex() == typeIndex)
                {
                    typeHandle = element;
                    return(true);
                }
            }

#if ENABLE_UNITY_COLLECTIONS_CHECKS
            throw new ArgumentException("There was no DynamicComponentTypeHandle found with the type index you provided.", nameof(typeIndex));
#else
            typeHandle = default;
            return(false);
#endif
        }