static String formatNamespace(final String packageName)
    {
        String[] tokens = packageName.split("\\.");
        final StringBuilder sb = new StringBuilder();
        for (final String t : tokens)
        {
            sb.append(Generators.toUpperFirstChar(t)).append(".");
        }
        if (sb.length() > 0)
        {
            sb.setLength(sb.length() - 1);
        }

        tokens = sb.toString().split("-");
        sb.setLength(0);

        for (final String t : tokens)
        {
            sb.append(Generators.toUpperFirstChar(t));
        }

        return sb.toString();
    }
Utilities for mapping between IR and the C# language.
sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/csharp/CSharpUtil.java