// // Absolute/Relative path conversion // public DirectoryPathAbsolute GetAbsolutePathFrom(DirectoryPathAbsolute path) { if (path == null) { throw new ArgumentNullException(); } if (PathHelper.IsEmpty(this) || PathHelper.IsEmpty(path)) { throw new ArgumentException("Cannot compute an absolute path from an empty path."); } return(new DirectoryPathAbsolute(BasePath.GetAbsolutePathFrom(path, this))); }
// // Absolute/Relative path conversion // public FilePathAbsolute GetAbsolutePathFrom(DirectoryPathAbsolute path) { if (path == null) { throw new ArgumentNullException(); } if (PathHelper.IsEmpty(this) || PathHelper.IsEmpty(path)) { throw new ArgumentException("Cannot compute an absolute path from an empty path."); } string pathAbsolute = BasePath.GetAbsolutePathFrom(path, this); return(new FilePathAbsolute(pathAbsolute + System.IO.Path.DirectorySeparatorChar + this.FileName)); }