Ejemplo n.º 1
0
        private static string GetCase(CodeBlock bodyBlock, params string[] labels)
        {
            if (!bodyBlock.HasReturn())
            {
                bodyBlock = bodyBlock.Append("break;");
            }

            var @case = bodyBlock.Indented().Insert(labels).Indented();

            return(@case.WithoutCurlyBraces());
        }