Menu
Cutty
  • Chryslers
  • Lutherie
  • YLSNED
  • About
Cutty

C# tip-bits

Posted on April 22, 2015December 1, 2019 by Iain 'Cutty' Carlin

Learning some interesting stuff doing the edX Microsoft Programming with C# course. Thought I’d list some of them here for reference

  • The test value in a while loop is called the sentinel value.
  • A do loop always executes at least once (so use it instead of setting the sentinel value first before entering a while loop)
  • You can use named arguments so that you don’t have to pad out optional parameters, e.g.: StopService(true, serviceID: 1); serviceID is the name of one of many optional parameters but not necessarily the second one for the StopService method.

Recent Posts

  • Books I read in 2025
  • 2024 was the best year for our solar system
  • Books I read in 2024
  • Books I read in 2023
  • Happy New Year 2024

Categories

  • Chryslers (1)
  • Cutty's Blog (13)
  • Lutherie (38)
  • You Learn Something New Every Day (44)
©2026 Cutty | Powered by Superb Themes