Skip to content

Instantly share code, notes, and snippets.

@stoberov
Last active October 17, 2016 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stoberov/e20a4ab3759c66c60c5e2575d076b9a2 to your computer and use it in GitHub Desktop.
Save stoberov/e20a4ab3759c66c60c5e2575d076b9a2 to your computer and use it in GitHub Desktop.
A collection of useful C# tricks
// Get path to desktop folder
Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory);
// Get file from desktop
var inputFile = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "test.pdf");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment