Exemple #1
0
 private static string GenerateCode(string ns, string className, IEnumerable<string> allKeys)
 {
     var f = new ConstantClassGenerator(ns, className, allKeys.Select(CleanKey).GroupBy(k => k).ToDictionary(g => GetConstantName(g.Key), k => k.Key));
     return  f.TransformText();
 }
Exemple #2
0
        private static string GenerateCode(string ns, string className, IEnumerable <string> allKeys)
        {
            var f = new ConstantClassGenerator(ns, className, allKeys.ToDictionary(GetConstantName, k => k));

            return(f.TransformText());
        }