Can you reverse order a string in one line with LINQ or a LAMBDA expression
Posted
by Student for Life
on Stack Overflow
See other posts from Stack Overflow
or by Student for Life
Published on 2009-07-20T10:57:50Z
Indexed on
2010/05/18
2:00 UTC
Read the original article
Hit count: 305
Not that I would want to use this practically (for many reasons) but out of strict curiousity I would like to know if there is a way to reverse order a string using LINQ and/or LAMBDA expressions in one line of code, without utilising any framework "Reverse" methods.
e.g.
string value = "reverse me";
string reversedValue = (....);
and reversedValue will result in "em esrever"
EDIT Clearly an impractical problem/solution I know this, so don't worry it's strictly a curiosity question around the LINQ/LAMBDA construct.
© Stack Overflow or respective owner