/// <summary> /// Initializes a new instance of the <see cref="Shell"/> class. /// </summary> public Shell() { hawkeyeId = Guid.NewGuid(); ApplicationInfo = new HawkeyeApplicationInfo(); // Do nothing else here, otherwise, HawkeyeApplication static constructor may fail. }
/// <summary> /// Initializes the <see cref="HawkeyeApplication"/> class. /// </summary> static HawkeyeApplication() { applicationInfo = new HawkeyeApplicationInfo(); var clrVersion = typeof(int).Assembly.GetName().Version; currentClr = clrVersion.Major == 4 ? Clr.Net4 : Clr.Net2; currentBitness = IntPtr.Size == 8 ? Bitness.x64 : Bitness.x86; Shell = new Shell(); }
/// <summary> /// Initializes the <see cref="HawkeyeApplication"/> class. /// </summary> static HawkeyeApplication() { ApplicationInfo = new HawkeyeApplicationInfo(); var clrVersion = typeof(int).Assembly.GetName().Version; CurrentClr = clrVersion.Major == 4 ? Clr.Net4 : Clr.Net2; CurrentBitness = IntPtr.Size == 8 ? Bitness.x64 : Bitness.x86; Shell = new Shell(); }