For example if I would like to get number of files in the project's directory.
In Java
I would write:
int numberOfFiles = new File(".").listFiles().length;
But I do not know how to get path to the project's directory in .NET. How to achieve the same goal in C#?