diff --git a/src/Global.cs b/src/Global.cs index 95fc880..8925b98 100644 --- a/src/Global.cs +++ b/src/Global.cs @@ -50,6 +50,17 @@ public override int GetHashCode() return Value.GetHashCode(); } + /// + public override string ToString() + { + return Value switch + { + 0 => nameof(Immutable), + 1 => nameof(Mutable), + _ => throw new ArgumentOutOfRangeException() + }; + } + /// /// Compare a to b and return true if they are equal ///