Related to optional parameters in C# are named parameters at method calls. There are libraries with classes that have long argument lists and when calling these methods we usually have to give only the parameters we know.
The following example shows how to call method with named parameters to save time and win on readability of code.
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.