コード例 #1
0
        public void SameOrLess3_Test()
        {
            var First  = new FrameworkName(".NETFramework", new Version("3.2"));
            var Second = new FrameworkName(".netFrameworka,Version = v3.5");

            IsFalse(First.SameOrLess(Second));
        }
コード例 #2
0
        public static FrameworkName FindCompatibleFramework(this IEnumerable <FrameworkName> input, FrameworkName targetFramework)
        {
            var sameFrameworks = input.FindFrameworks(targetFramework);

            return(sameFrameworks.OrderByDescending(a => a.Version)
                   .FirstOrDefault(a => targetFramework.SameOrLess(a)));
        }