More Prism stuff
This commit is contained in:
@ -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)
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user