GetInstance() static private méthode

Gets the single instance for the current process bitness.
static private GetInstance ( ) : RegistryView
Résultat RegistryView
Exemple #1
0
        public void SingletonMatchesArchitecture()
        {
            var view = RegistryView.GetInstance();

            Assert.AreEqual <bool>(8 == IntPtr.Size, view.Is64Bit);
        }
Exemple #2
0
 public static void Initialize(TestContext context)
 {
     // Initialize to avoid showing perf hit to individual tests.
     RegistryView.GetInstance();
 }