Generics C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Drawing;
using System.Drawing.Imaging;
public static class CollectionsExtensions
{
    public static string ToStringAll(this List list)
    {
        StringBuilder sb = new StringBuilder();
        foreach (var item in list)
        {
            sb.Append(item.ToString());
            sb.Append(Environment.NewLine);
        }
        return sb.ToString();
    }
}