CheckForDotNet45.Program.IsNet45OrNewer C# (CSharp) Method

IsNet45OrNewer() private static method

Determines whether we have .net 4.5 or newer.
private static IsNet45OrNewer ( ) : bool
return bool
        private static bool IsNet45OrNewer()
        {
            // Class "ReflectionContext" exists in .NET 4.5 .
            return Type.GetType("System.Reflection.ReflectionContext", false) != null;
        }