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

  • Lawson – A life in words and music
  • Instrument Making Course
  • Jigging, plating and sanding
  • A building block….
  • Fridays are lutherie days!

Categories

  • Chryslers (1)
  • Cutty's Blog (8)
  • Lutherie (38)
  • You Learn Something New Every Day (40)
©2023 Cutty | Powered by WordPress & Superb Themes