I've been reading a book about C#. What does the word 'set' mean in the following excerpt?
Pattern matching with the switch statement: Like the if statement, the switch statement supports pattern matching in C# 7.0 and later. The case values no longer need to be literal values; they can be patterns. Let's see an example of pattern matching with the switch statement using a folder path. If you are using macOS, then swap the commented statement that sets the path variable and replace my username with your user folder name:
- Add the following statement to the top of the file to import types for working with input/output: using System.IO;
- Add statements to the end of the Main method to declare a string path to a file, open it as either a readonly or writeable stream, and then show a message based on what type and capabilities the stream has, as shown in the following code:
// string path ="/Users/markjprice/Code/Chapter03"; string path => @"C:\Code\Chapter03"; Write("Press R for readonly or W for write: "); ConsoleKeyInfo key = ReadKey(); WriteLine(); ...
My question is about the following part:
If you are using macOS, then swap the commented statement that sets the path variable and replace my username with your user folder name
Would anybody explain it to me?