private void PrintAddedRemovedTypes(DiffCollection <TypeDefinition> diffCollection)
        {
            if (diffCollection.RemovedCount > 0)
            {
                this.Out.WriteLine("\tRemoved {0} public type/s", diffCollection.RemovedCount);
                foreach (var remType in diffCollection.Removed)
                {
                    this.Out.WriteLine("\t\t- {0}", remType.ObjectV1.Print());
                }
            }

            if (diffCollection.AddedCount > 0)
            {
                this.Out.WriteLine("\tAdded {0} public type/s", diffCollection.AddedCount);
                foreach (var addedType in diffCollection.Added)
                {
                    this.Out.WriteLine("\t\t+ {0}", addedType.ObjectV1.Print());
                }
            }
        }
Example #2
0
 public AssemblyDiffCollection()
 {
     this.AddedRemovedTypes = new DiffCollection <TypeDefinition>();
     this.ChangedTypes      = new List <TypeDiff>();
 }