/// <summary> /// Writes a 32-bit integer array value to the registry key. /// </summary> /// <param name="key">The key.</param> /// <param name="name">The value name.</param> /// <param name="value">The value.</param> public static void SetInt32Array(this RegistryKey key, string name, Int32[] value) { key.SetValue(name, value.GetBytes(), RegistryValueKind.Binary); }
/// <summary> /// Writes a 32-bit integer array value to the registry. /// </summary> /// <param name="keyName">The key name.</param> /// <param name="valueName">The value name.</param> /// <param name="value">The value.</param> public static void SetInt32Array(string keyName, string valueName, Int32[] value) { Microsoft.Win32.Registry.SetValue(keyName, valueName, value.GetBytes(), RegistryValueKind.Binary); }