From 6552e153d0e63d5d26a724dede9bbc1686c47096 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sat, 19 Jan 2019 14:21:36 +0100 Subject: [PATCH] Add TypeContainer toString overrides --- Upsilon/BaseTypes/TypeContainer.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Upsilon/BaseTypes/TypeContainer.cs b/Upsilon/BaseTypes/TypeContainer.cs index 900d050..d537bc7 100644 --- a/Upsilon/BaseTypes/TypeContainer.cs +++ b/Upsilon/BaseTypes/TypeContainer.cs @@ -52,6 +52,11 @@ namespace Upsilon.BaseTypes { return !Equals(a, b); } + + public override string ToString() + { + return Type.ToString(); + } } public class CompositeTypeContainer : TypeContainer @@ -61,5 +66,10 @@ namespace Upsilon.BaseTypes public CompositeTypeContainer() : base(Type.Table) { } + + public override string ToString() + { + return $"{Type.ToString()} ({string.Join(", ", Types)})"; + } } } \ No newline at end of file