/// <summary>Measures the total size of all objects allocated to this /// collection, in bytes, including the size of this object itself; see /// <see cref="InternalSet{T}.CountMemory"/>.</summary> public virtual long CountMemory(int sizeOfPair) { return(IntPtr.Size * 4 + _set.CountMemory(sizeOfPair)); }
/// <summary>Measures the total size of all objects allocated to this /// collection, in bytes, including the size of this object itself; see /// <see cref="Impl.InternalSet{T}.CountMemory"/>.</summary> public long CountMemory(int sizeOfT) { return(IntPtr.Size * 2 + _set.CountMemory(sizeOfT)); }