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.