public static XofFileEnumObject OpenEnumObject(string path)
        {
            if (string.IsNullOrEmpty(path))
            {
                throw new ArgumentNullException(nameof(path));
            }

            using (var file = new XofFile())
            {
                file.RegisterDefaultTemplates();

                return(file.CreateEnumObject(path));
            }
        }
        public static XofFileEnumObject OpenEnumObject(byte[] bytes)
        {
            if (bytes == null)
            {
                throw new ArgumentNullException(nameof(bytes));
            }

            if (bytes.Length == 0)
            {
                throw new ArgumentOutOfRangeException(nameof(bytes));
            }

            using (var file = new XofFile())
            {
                file.RegisterDefaultTemplates();

                return(file.CreateEnumObject(bytes));
            }
        }