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

@ -98,7 +98,8 @@ namespace KattekerCreator.Helper
if (textWriter == null) textWriter = Console.Out;
LoopProperties(pi =>
{
var displayName = GetDisplayName(pi) ?? pi.Name;
var displayName = GetDisplayName(pi);
if (displayName == null) return;
var value = pi.GetValue(_parsedObject);
textWriter.Write(displayName.PadRight(20, ' '));
if (value == null)

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);
}
}