Showing results for August 12, 2008 - The Old New Thing

Aug 12, 2008
Post comments count0
Post likes count0

The unwritten rule of riding a Seattle Metro bus

Raymond Chen
Raymond Chen

The Metro King County transit site has all the facts about how to ride the bus, but there's another rule that is applied by convention rather than by any formal codification: For some reason, and I see this only in Seattle, it is customary to say Thank you to the bus driver as you get off the bus. Tip for new riders: If you aren't familiar w...

Non-Computer
Aug 12, 2008
Post comments count0
Post likes count0

The implementation of iterators in C# and its consequences (part 1)

Raymond Chen
Raymond Chen

Like anonymous methods, iterators in C# are very complex syntactic sugar. You could do it all yourself (after all, you did have to do it all yourself in earlier versions of C#), but the compiler transformation makes for much greater convenience. The idea behind iterators is that they take a function with yield return statements (and possible s...

Code