Created
November 5, 2012 13:58
-
-
Save mortenbock/4017307 to your computer and use it in GitHub Desktop.
Extraction sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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