Partial class ToolMode implementing ICookieSource, defining a virtual CookiePrefix property that returns a string using an interpolated expression with the type name in lower case prefixed by "tool.".
partial class ToolMode : ICookieSource
{
public virtual string CookiePrefix => $"tool.{GetType().Name.ToLowerInvariant()}";
}