Answers for "c# get directory of class"

C#
11

c# get current directory

string currentDir = System.IO.Directory.GetCurrentDirectory();
//returns the current directory of the application when executing
Posted by: Guest on December-11-2020
2

get directory of file c#

using System.IO;

string file = "C:Documentsfile.txt";
Path.GetDirectoryName(file);
Posted by: Guest on December-03-2020

C# Answers by Framework

Browse Popular Code Answers by Language