예제 #1
0
 internal static string TryRemoveLongPathPrefix(string path, out bool removed)
 {
     removed = Path.HasLongPathPrefix(path);
     if (!removed)
     {
         return(path);
     }
     return(Path.RemoveLongPathPrefix(path));
 }
예제 #2
0
 internal static String TryRemoveLongPathPrefix(String path, out bool removed)
 {
     Contract.Requires(path != null);
     removed = Path.HasLongPathPrefix(path);
     if (!removed)
     {
         return(path);
     }
     return(Path.RemoveLongPathPrefix(path));
 }