I love F#.<p>Same code in F# (one line, of course!)<p><pre><code> let currentNetTypes = System.AppDomain.CurrentDomain.GetAssemblies() |>
Seq.filter(fun x->x.FullName.Contains("Version=4.0.0.0")) |>
Seq.map(fun x->x.GetExportedTypes()) |> Seq.concat |>
Seq.sortBy(fun x->x.Name.Length);;
</code></pre>
To me this reads easier, but I admit to a biased opinion :)