More Prism stuff

This commit is contained in:
Holger Boerchers
2018-07-31 20:58:55 +02:00
parent 9c23948f38
commit 947db44090
9 changed files with 55 additions and 34 deletions

View File

@ -3,7 +3,7 @@ using System.Linq;
namespace KattekerCreator
{
public class PathFragments
public struct PathFragments
{
private readonly string[] _fragments;
@ -19,7 +19,5 @@ namespace KattekerCreator
public override int GetHashCode() => (_fragments != null ? _fragments.GetHashCode() : 0);
public override string ToString() => string.Join(Path.DirectorySeparatorChar.ToString(), _fragments.Take(_fragments.Length - 1));
protected bool Equals(PathFragments other) => Equals(_fragments, other._fragments);
}
}