示例#1
0
 /// <summary>
 /// Combines the template prefix, the class definitions, and the template suffix into
 /// the complete contents of T4TS.tt.
 /// </summary>
 public static string BuildT4TSFromSourceFiles(IEnumerable<FileInfo> fromFiles)
 {
     var merger = new SourceFileMerger();
     string combinedSource = merger.MergeSourceFileClasses(fromFiles);
     string template = Resources.TemplatePrefix + combinedSource + Resources.TemplateSuffix;
     
     return template;
 }
示例#2
0
        /// <summary>
        /// Combines the template prefix, the class definitions, and the template suffix into
        /// the complete contents of T4TS.tt.
        /// </summary>
        public static string BuildT4TSFromSourceFiles(IEnumerable <FileInfo> fromFiles)
        {
            var    merger         = new SourceFileMerger();
            string combinedSource = merger.MergeSourceFileClasses(fromFiles);
            string template       = Resources.TemplatePrefix + combinedSource + Resources.TemplateSuffix;

            return(template);
        }