Converting VB6 Property statements to .NET
I am attempting to convert a class module written in VB6 to .NET. The main problem is that there are several Property Let procedures that have no analog in .NET. Here is an example:
Property Let Root(lProp As RegRoot)
' Don't accept an invalid Root value.
Select Case lProp
Case HKEY_CLASSES_ROOT, HKEY_CURRENT_USER, _
HKEY_LOCAL_MACHINE
' All is well.
Case Else
lRoot = HKEY_CURRENT_USER
End Select
If lProp <> lRoot Then
lRoot = lProp
If Len(strKeyName) Then
GetKeyHandle lRoot, strKeyName
End If
End If
lRoot = lProp
End Property
How can this be rewritten to work in .NET?
Thanks

