Thursday, June 24, 2010

Fun 'anonymous' names in C#

dic = File.ReadLines(fixFile)
   .Select(ParseLine)
   .Where(_ => null != _.Value)
   .ToDictionary(_ => _.Key, _ => _.Value);
I have been thinking that "_" is a new c# language feature bundled with lambda...
but then I reminded m_fileName and _fileName naming styles. "_" is just innocent valid C# name.

No comments:

Post a Comment