コード例 #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);
        }
コード例 #2
0
ファイル: Scanner.cs プロジェクト: z2xlong/ApiScanner-net
        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);
            }
        }