protected CodeLibraryComposer() { CodeFilesComposer = new FilesComposer(@"\"); Templates = new ParametricComposerCollection(); TemplatesReady = false; }
/// <summary> /// Generate a dictionary of names-values and add the values in the dictionary to the given text /// builders collection /// </summary> /// <param name="textBuilder"></param> /// <param name="templates"></param> /// <param name="paramsValues"></param> public static ListComposerCollection AddTextItems(this ListComposerCollection textBuilder, ParametricComposerCollection templates, params object[] paramsValues) { foreach (var pair in textBuilder) { ParametricComposer template; if (templates.TryGetValue(pair.Key, out template)) { pair.Value.Add(template, paramsValues); } } return(textBuilder); }