Last active
October 17, 2016 14:52
-
-
Save stoberov/e20a4ab3759c66c60c5e2575d076b9a2 to your computer and use it in GitHub Desktop.
A collection of useful C# tricks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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