Microsoft.Tools.WindowsInstaller.RegistryView.GetInstance C# (CSharp) Method

GetInstance() static private method

Gets the single instance for the current process bitness.
static private GetInstance ( ) : RegistryView
return RegistryView
        internal static RegistryView GetInstance()
        {
            if (null == instance)
            {
                lock (syncRoot)
                {
                    if (null == instance)
                    {
                        instance = new RegistryView(8 == IntPtr.Size);
                    }
                }
            }

            return instance;
        }

Usage Example

Esempio n. 1
0
        public void SingletonMatchesArchitecture()
        {
            var view = RegistryView.GetInstance();

            Assert.AreEqual <bool>(8 == IntPtr.Size, view.Is64Bit);
        }
All Usage Examples Of Microsoft.Tools.WindowsInstaller.RegistryView::GetInstance