Example #1
0
        public static NameSyntax NamespaceName(string[] @namespace)
        {
            NameSyntax ident = null;

            if (@namespace != null)
            {
                ident = IdentifierName(SyntaxHelpers.MakeUpperCamel(@namespace[0]));
                foreach (string name in @namespace.Skip(1))
                {
                    var temp = IdentifierName(SyntaxHelpers.MakeUpperCamel(name));
                    ident = QualifiedName(ident, temp);
                }
            }
            return(ident);
        }
Example #2
0
 string GetCodeIdentifierUpperCamel(Field field) => field.CsName ?? SyntaxHelpers.MakeUpperCamel(field.Name);
Example #3
0
 public Name GetCodeIdentifier(Method method)
 {
     return(new Name(method.CsName ?? IdentifierRenamer.ToNonKeyword(SyntaxHelpers.MakeUpperCamel(method.Name))));
 }