Example #1
0
        public ApiTraverser(IMetadataReaderHost host, IAssembly assembly)
        {
            if (host == null)
            {
                throw new ArgumentNullException("ContractAwareHost arg should not be null.");
            }

            _host     = host;
            _assembly = new AssemblyApi(assembly);
        }
Example #2
0
        public static IEnumerable <string> CompareApi(AssemblyApi oldVersion, AssemblyApi newVersion)
        {
            List <string> incompatibility = new List <string>();

            if (newVersion.IsCompatible(oldVersion) >= 0)
            {
                return(null);
            }
            else
            {
                return(incompatibility);
            }
        }