// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
+#if !NET_2_1
+
using System;
+using System.Runtime.InteropServices;
namespace Microsoft.Win32
{
- public
-#if NET_2_0
- static
-#else
- sealed
-#endif
- class Registry
+ [ComVisible (true)]
+ public static class Registry
{
-#if !NET_2_0
- private Registry () { }
-#endif
public static readonly RegistryKey ClassesRoot = new RegistryKey (
RegistryHive.ClassesRoot);
public static readonly RegistryKey CurrentConfig = new RegistryKey (
RegistryHive.CurrentConfig);
public static readonly RegistryKey CurrentUser = new RegistryKey (
RegistryHive.CurrentUser);
+
+ [Obsolete ("Use PerformanceData instead")]
public static readonly RegistryKey DynData = new RegistryKey (
RegistryHive.DynData);
public static readonly RegistryKey LocalMachine = new RegistryKey (
public static readonly RegistryKey Users = new RegistryKey (
RegistryHive.Users);
-#if NET_2_0
static RegistryKey ToKey (string keyName, bool setting)
{
if (keyName == null)
return key.GetValue (valueName, defaultValue);
}
-#endif
}
}
+
+#endif // NET_2_1
+