Пример #1
0
        /// <summary>
        /// The sequence is critical: the templates will be executed in the order of the returned list.
        /// But it will be put into another position you specified in the target file.
        /// </summary>
        /// <returns>The generators as well as its target file name and position in file.</returns>
        private IEnumerable <(ITfProviderGenerator Generator, uint ExecutionNumber, string TargetFile, uint PositionInFile)> CreateGeneratorDescriptors()
        {
            var resourceName     = Settings.Metadata.ResourceName;
            var resourceFileName = CodeNamer.GetResourceFileName(resourceName) + ImplementationFileExtension;

            return(new (ITfProviderGenerator, uint, string, uint)[]