Add TypeContainer toString overrides

This commit is contained in:
Deukhoofd 2019-01-19 14:21:36 +01:00
parent fcd26f4cc0
commit 6552e153d0
No known key found for this signature in database
GPG Key ID: B4C087AC81641654
1 changed files with 10 additions and 0 deletions

View File

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