Пример #1
0
        public void Write(string oldAssembliesName, IEnumerable <IAssembly> oldAssemblies, string newAssembliesName, IEnumerable <IAssembly> newAssemblies)
        {
            AssemblySetMapping mapping;

            if (!string.IsNullOrEmpty(newAssembliesName))
            {
                _settings.ElementCount = 2;
                mapping = new AssemblySetMapping(_settings);
                mapping.AddMappings(oldAssemblies, newAssemblies);
            }
            else
            {
                _settings.ElementCount = 1;
                mapping = new AssemblySetMapping(_settings);
                mapping.AddMapping(0, oldAssemblies);
            }

            if (oldAssembliesName != null)
            {
                using (_syntaxWriter.StartStyle(SyntaxStyle.Removed))
                    _syntaxWriter.Write("{0}", oldAssembliesName);
                _syntaxWriter.WriteLine();
            }

            if (newAssembliesName != null)
            {
                using (_syntaxWriter.StartStyle(SyntaxStyle.Added))
                    _syntaxWriter.Write("{0}", newAssembliesName);
                _syntaxWriter.WriteLine();
            }

            Visit(mapping);
        }
Пример #2
0
        public void Visit(IEnumerable<IAssembly> oldAssemblies, IEnumerable<IAssembly> newAssemblies)
        {
            Contract.Requires(oldAssemblies != null);
            Contract.Requires(newAssemblies != null);

            AssemblySetMapping mapping = new AssemblySetMapping(this.Settings);
            mapping.AddMappings(oldAssemblies, newAssemblies);

            Visit(mapping);
        }
        public void Visit(IEnumerable <IAssembly> oldAssemblies, IEnumerable <IAssembly> newAssemblies)
        {
            Contract.Requires(oldAssemblies != null);
            Contract.Requires(newAssemblies != null);

            AssemblySetMapping mapping = new AssemblySetMapping(this.Settings);

            mapping.AddMappings(oldAssemblies, newAssemblies);

            Visit(mapping);
        }
Пример #4
0
        public new void Write(string oldAssembliesName, IEnumerable <IAssembly> oldAssemblies, string newAssembliesName, IEnumerable <IAssembly> newAssemblies)
        {
            AssemblySetMapping mapping;

            if (!string.IsNullOrEmpty(newAssembliesName))
            {
                _settings.ElementCount = 2;
                mapping = new AssemblySetMapping(_settings);
                mapping.AddMappings(oldAssemblies, newAssemblies);
            }
            else
            {
                _settings.ElementCount = 1;
                mapping = new AssemblySetMapping(_settings);
                mapping.AddMapping(0, oldAssemblies);
            }
            Visit(mapping);
        }