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); }
string GetCodeIdentifierUpperCamel(Field field) => field.CsName ?? SyntaxHelpers.MakeUpperCamel(field.Name);
public Name GetCodeIdentifier(Method method) { return(new Name(method.CsName ?? IdentifierRenamer.ToNonKeyword(SyntaxHelpers.MakeUpperCamel(method.Name)))); }