Is it Acceptable to Abbreviate Lambda Parameters

Posted by Russell Giddings on Stack Overflow See other posts from Stack Overflow or by Russell Giddings
Published on 2010-03-28T14:46:18Z Indexed on 2010/03/28 14:53 UTC
Read the original article Hit count: 284

Filed under:
|
|

I frequently see lambda expression parameters abbreviated to one character. For example...

var stringList = new List<string>{ "one", "two", "three" };
stringList.Where(x => x.Length < 4);

Is it acceptable to use x as the parameter name here or should a more descriptive name be used?

© Stack Overflow or respective owner

Related posts about c#

Related posts about lambda