private static void AddToStringMethod(CsClass cl, KeysGeneratorDef def)
        {
            var m = cl.AddMethod(nameof(ToString), "string");

            m.Overriding = OverridingType.Override;
            var e = def.GetToStringExpression();

            m.Body = $"return {e};";
        }