Skip to content

Instantly share code, notes, and snippets.

@stoberov stoberov/C#.cs

Last active Oct 17, 2016
Embed
What would you like to do?
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
You can’t perform that action at this time.