Skip to content

Instantly share code, notes, and snippets.

@serialseb
Created September 23, 2011 18:59
Show Gist options
  • Save serialseb/1238163 to your computer and use it in GitHub Desktop.
Save serialseb/1238163 to your computer and use it in GitHub Desktop.
Which language do you prefer?
ResourceSpace.Has.Resource<Home>()
/*(1)*/ .Map(_=>_.LastModified(r=>r.UpdateTime)
.Etag(r=>r.ID))
/*(2)*/ .MapLastModified(_=>_.UpdateTime)
.MapEtag(r=>r.ID)
/*(3)*/ .Map().LastModified(_=>_.UpdateTime)
.Etag(_=>_.ID)
/*(4)*/ .Map(_=>_.UpdateTime).LastModified()
.Map(_=>_.ID).Etag()
/*(5)*/ .LastModified(_=>_.UpdateTime)
.Etag(_=>_.ID)
@SteveDunn
Copy link

5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment