Go to Chapter 5, copy and paste. It’s almost as simple as this. C# being an imperative language doesn’t shy away from side-effecting operations in its core language definition.
Get C# 5.0 Unleashed now with O’Reilly online learning.
O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.