i want to retrieve the Desktop Directory but i found 2 way :
1 : Environment.GetFolderPath(Environment.SpecialFolde
2 : My.Computer.FileSystem.SpecialDirectories.Desktop
so.. what is the best ? And why 2 choose for this ? I am confused...
VB provides the My object. It just wraps the environment (as well as other parts of the CLR), which you could access directly if you want. The My object is not available in C#.
Access a broad range of knowledge to help get the most out of your products and services.