LINQ options

Is there any way to tell Resharper to use rather extensions not pure LINQ?
I prefer notation
list.Where(w=> w == 1).Select(w=>w.ToString())

instead of
from w in list where w == 1 select w.ToString()

If enumerable is by default not posible there is always option to Cast

2 comments
Comment actions Permalink

Hello Marcin,

You can use Convert LINQ to methods chain context action for any LINQ expression.
Thank you!

Andrey Serebryansky
Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Is there any way to tell Resharper to use rather extensions not pure
LINQ?
I prefer notation
list.Where(w=> w == 1).Select(w=>w.ToString())
instead of
from w in list where w == 1 select w.ToString()
If enumerable is by default not posible there is always option to Cast

---
Original message URL:
http://devnet.jetbrains.net/message/5266773#5266773



0

Please sign in to leave a comment.