All pastes #479740 Raw Edit

Mine

public text v1 · immutable
·published 2007-05-09 21:37 UTC
rendered paste body
using System;
using System.Collections.Generic;
public class ListBuilder
{	
	public static List<T> Build<T>(params T[] values)
	{
		List<T> built = new List<T>();
		foreach (T value in values)
			built.Add(value);
		return built;
	}

	public static void Main(String[] args)
	{
		List<String> hw = ListBuilder.Build("Hello","World");
		foreach (String str in hw)
			Console.WriteLine(str);
	}	
}