示例#1
0
        /**
         * <summary>Unwrap a ListTag into a list.</summary>
         * <param name="list">The ListTag to convert back into a list. The contents of the list are automatically unwrapped.</param>
         * <typeparam name="T">The data type of the list.</typeparam>
         * <returns>The unwrapped ListTag.</returns>
         */
        public static List <T> UnWrapListTag <T>(ListTag <Tag <T> > list)
        {
            List <T> output = new List <T>();

            foreach (Tag <T> tag in list.GetValue())
            {
                output.Add(UnWrap(tag));
            }
            return(output);
        }