Created
July 8, 2012 14:14
-
-
Save kmorcinek/3071142 to your computer and use it in GitHub Desktop.
Usefull functions for C#
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
using System; | |
using System.IO; | |
public static class PathHelper | |
{ | |
public static bool AreEqualPath(string first, string second) | |
{ | |
return String.Compare( | |
Path.GetFullPath(first).TrimEnd('\\'), | |
Path.GetFullPath(second).TrimEnd('\\'), | |
StringComparison.InvariantCultureIgnoreCase) == 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment