private static string CName(string cName) { return(_namingHelper.FixCName(cName)); var match = _cNameRegex.Match(cName); if (match.Success) { return(match.Groups["Name"].Value); } else { return(cName); } }