SwfDotNet.IO.Tags.BaseTagCollection.ToArray C# (CSharp) Method

ToArray() public method

Convert collection to array
public ToArray ( ) : SwfDotNet.IO.Tags.BaseTag[]
return SwfDotNet.IO.Tags.BaseTag[]
        public BaseTag[] ToArray()
        {
            BaseTag[] res = null;

            if (this.Count > 0)
            {
                res = new BaseTag[this.Count];
                for (int i = 0; i < this.Count; i++)
                    res[i] = this[i];
            }
            return res;
        }