Cannot use Path.GetFileName Method

It seems that I cannot use the Path.GetFileName method. Is it because there is some extension that I need to install?

2 Likes

Oh, sorry, I found the reason. I named the variable as “Path”. That’s why the method doesn’t exist.

2 Likes