DEV Community

Discussion on: C# and .NET Core Appreciation Post. The most beautiful piece of code I have ever seen... this month!

wozsoftware profile image

Linq is epic and versatile. Here is a sample of me combing two Lazy objects building a new lazy result without executing them via using .Value, via linq monad extensions i created

Var lazyresult =
from a in lazyThing1
from b in lazyThing2
select a + b;