private static int GetCacheKey(NuGetFramework framework, NuGetFramework other)
        {
            HashCombiner combiner = new HashCombiner();

            // create the cache key from the hash codes of both frameworks
            // the order is important here since compatibility is usually one way
            combiner.AddObject(framework);
            combiner.AddObject(other);

            return(combiner.CombinedHash);
        }
Esempio n. 2
0
        private static int GetCacheKey(NuGetFramework target, NuGetFramework candidate)
        {
            var combiner = new HashCombiner();

            // create the cache key from the hash codes of both frameworks
            // the order is important here since compatibility is usually one way
            combiner.AddObject(target);
            combiner.AddObject(candidate);

            return(combiner.CombinedHash);
        }
Esempio n. 3
0
        private static int GetCacheKey(NuGetFramework target, NuGetFramework candidate)
        {
            var combiner = new HashCombiner();

            // create the cache key from the hash codes of both frameworks
            // the order is important here since compatibility is usually one way
            combiner.AddObject(target);
            combiner.AddObject(candidate);

            return combiner.CombinedHash;
        }