LINQPad in Visual Studio
问题 public static class Extensions{ public static void Dump<T>(this T o) { } public static void Dump<T>(this T o, string s) { }} These lines allow me to copy code from LINQPad to VS and run it without commenting out every line with .Dump() but it's not enough... http://code.google.com/p/linqpadvisualizer/ - not very comfortable :( The best result I get searching for LINQPad in VS is this site with code below by Pat Kujawa. using System.Diagnostics; using System.IO; public static class Extensions