Add TypeContainer toString overrides
This commit is contained in:
@@ -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)})";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user