Exemplo n.º 1
0
        public Array(IEnumerable collection) : this()
        {
            if (collection == null)
            {
                throw new NullReferenceException($"Parameter '{nameof(collection)} cannot be null.'");
            }

            MarshalUtils.EnumerableToArray(collection, GetPtr());
        }