Help me convert this line to C#
<p>Please help me convert this line to C#.</p>

<pre><code>objManagementBaseObject.SetPropertyValue("hDefKey", CType("&amp;H" &amp;
Hex(RegistryHive.LocalMachine), Long))
</code></pre>

<p>Related References in C#:
System.Management</p>

<p>Thank you.</p>

<p>Additional Info:</p>

<p>Code was originally in VB.</p>
