Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/Global.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,17 @@ public override int GetHashCode()
return Value.GetHashCode();
}

/// <inheritdoc />
public override string ToString()
{
return Value switch
{
0 => nameof(Immutable),
1 => nameof(Mutable),
_ => throw new ArgumentOutOfRangeException()
};
}

/// <summary>
/// Compare a to b and return true if they are equal
/// </summary>
Expand Down