Net Dots

.Net and programming in general

Code paste from Visual Studio

Hooray, very nice HTML code formatter is available for Live Writer.

http://plugins.live.com/writer/detail/paste-from-visual-studio

In action:

        public static IObservable<T> Previous<T>(this IObservable<T> source)
        {
            return source
                .Scan(Tuple.Create(default(T), default(T)), (prev, current) => Tuple.Create(prev.Item2, current))
                .Skip(1)
                .Select(x => x.Item1);
        }

July 17, 2012 Posted by | Uncategorized | Leave a comment