File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 66
77namespace ImageMagick ;
88
9- internal static partial class Runtime
9+ internal static class Runtime
1010{
11- public static bool Is64Bit { get ; } = Architecture is Architecture . X64 or Architecture . Arm64 ;
11+ static Runtime ( )
12+ {
13+ Architecture = GetArchitecture ( ) ;
14+ Is64Bit = Architecture is Architecture . X64 or Architecture . Arm64 ;
15+ IsWindows = RuntimeInformation . IsOSPlatform ( OSPlatform . Windows ) ;
16+ }
1217
13- public static Architecture Architecture { get ; } = GetArchitecture ( ) ;
18+ public static bool Is64Bit { get ; }
1419
15- public static bool IsWindows { get ; } = RuntimeInformation . IsOSPlatform ( OSPlatform . Windows ) ;
20+ public static Architecture Architecture { get ; }
21+
22+ public static bool IsWindows { get ; }
1623
1724 private static Architecture GetArchitecture ( )
1825 {
1926 var processArchitecture = RuntimeInformation . ProcessArchitecture ;
20-
2127 return processArchitecture switch
2228 {
2329 Architecture . X64 or Architecture . Arm64 or Architecture . X86 => processArchitecture ,
You can’t perform that action at this time.
0 commit comments