Exemple #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="path"></param>
 /// <exception cref="System.ArgumentNullexception"><paramref name="path"/> is null.</exception>
 public NpkPath(string path)
 {
     m_path = new ScriptPvfPath(path);
 }
Exemple #2
0
 // path assumed to not be null
 private NpkPath(ScriptPvfPath path)
 {
     m_path = path;
 }
Exemple #3
0
 /// <summary>
 /// Combines two Npk Paths together to form one path. If either path is the root directory, the
 /// other path is returned.
 /// </summary>
 /// <param name="path1">The first path.</param>
 /// <param name="path2">The second path.</param>
 /// <returns>The combined path.</returns>
 /// <exception cref="System.ArgumentNullException"><paramref name="path1"/> or <paramref name="path2"/>
 /// is null.</exception>
 public static NpkPath Combine(NpkPath path1, NpkPath path2)
 {
     path1.ThrowIfNull("path1");
     path2.ThrowIfNull("path2");
     return(new NpkPath(ScriptPvfPath.Combine(path1.m_path, path2.m_path)));
 }