Ejemplo n.º 1
0
 public static string Combine(string path1, string path2)
 {
     if (path1 == null || path2 == null)
     {
         throw new ArgumentNullException(path1 == null ? "path1" : "path2");
     }
     PATH.CheckInvalidPathChars(path1, false);
     PATH.CheckInvalidPathChars(path2, false);
     return(PATH.CombineNoChecks(path1, path2));
 }
Ejemplo n.º 2
0
 internal static void CheckInvalidPathChars(string path, bool checkAdditional /*= false*/)
 {
     if (path == null)
     {
         throw new ArgumentNullException("path");
     }
     if (PATH.HasIllegalCharacters(path, checkAdditional))
     {
         throw new ArgumentException("Argument_InvalidPathChars");
     }
 }