We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ba1f1b commit 2b735b6Copy full SHA for 2b735b6
snippets/csharp/System.IO/Directory/GetCurrentDirectory/dir_getcurdir.cs
@@ -19,7 +19,7 @@ public static void Main()
19
20
// Change the current directory.
21
Environment.CurrentDirectory = (target);
22
- if (path.Equals(Directory.GetCurrentDirectory()))
+ if (target.Equals(Directory.GetCurrentDirectory()))
23
{
24
Console.WriteLine("You are in the temp directory.");
25
}
@@ -34,4 +34,4 @@ public static void Main()
34
35
36
37
-// </Snippet1>
+// </Snippet1>
0 commit comments