/// <summary>
        /// Create a collection of Files.
        /// </summary>
        /// <param name="parentElement">A parent element to one or more child File elements</param>
        /// <returns>A collection of Files</returns>
        internal static IEnumerable<File> CreateEnumerable(XElement parentElement, IContentAPI client)
        {
            List<File> fileList = new List<File>();

            if (parentElement != null)
            {
                var elements = from el in parentElement.Elements() where (el.Name == "File" || el.Name == "ReferenceFile") select el;

                foreach (XElement file in elements)
                {
                    File childFile = new File(file, client);
                    fileList.Add(childFile);
                }
            }

            IEnumerable<File> files = fileList.ToArray<File>();

            return files;
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="other"></param>
        /// <returns></returns>
        public bool Equals(File other)
        {
            // Check for null
            if (ReferenceEquals(other, null))
            {
                return false;
            }

            // Check for same reference
            if (ReferenceEquals(this, other))
            {
                return true;
            }

            // Check for same Id and same Values
            return this.AssetID == other.AssetID;
        }