Clean up IsDotNet46 check

This commit is contained in:
ghorsington committed 2019-08-14 22:07:21 +03:00
1 parent 7723b6a1a6
commit e3ed94f535
1 file changed
+1 -1
+1 -1
View File
@@ -28,7 +28,7 @@ namespace BepInEx.Preloader
public static bool IsPostUnity2017 { get; } = File.Exists(Path.Combine(Paths.ManagedPath, "UnityEngine.CoreModule.dll"));
public static bool IsDotNet46 { get; } = string.Compare("4.0.30319.42000", Environment.Version.ToString(), StringComparison.Ordinal) <= 0;
public static bool IsDotNet46 { get; } = new Version("4.0.30319.42000") <= Environment.Version;
static Preloader()
{