Skip to content

Instantly share code, notes, and snippets.

@mortenbock
Created November 5, 2012 13:58
Show Gist options
  • Save mortenbock/4017307 to your computer and use it in GitHub Desktop.
Save mortenbock/4017307 to your computer and use it in GitHub Desktop.
Extraction sample
//Original
myCollection
.Select(i=> new Foo(i))
.Where(f=>f.IsSomething)
.Select(f=>f.Name);
//Mark these two lines
.Select(i=> new Foo(i))
.Where(f=>f.IsSomething)
//Extract to this
myCollection
.IsSOmething()
.Select(f=>f.Name);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment