ApprovalTests.WindowsRegistry.WindowsRegistryAssert.ReadIntKeyValue C# (CSharp) Method

ReadIntKeyValue() private static method

private static ReadIntKeyValue ( RegistryKey registryKey, string keyName, string valueName ) : int
registryKey Microsoft.Win32.RegistryKey
keyName string
valueName string
return int
		private static int ReadIntKeyValue(RegistryKey registryKey, string keyName, string valueName)
		{
			using (var key = registryKey.OpenSubKey(keyName))
			{
				return key == null ? 0 : (int)key.GetValue(valueName, 0);
			}
		}
	}
WindowsRegistryAssert