Registry ? How to call GetType method

  • Thread starter Thread starter WJ
  • Start date Start date
W

WJ

How do I call the RegistryKey.GetType() method in c#. I got to the
ValueKeyname and its Data.

John
 
WJ said:
How do I call the RegistryKey.GetType() method in c#. I got to the
ValueKeyname and its Data.

RegistryKey.GetType() would only return typeof(RegistryKey),
effectively. When you've got the Data, look at the type of *that*:

if (data is string)
{
....
}

if (data is int)
{
....
}

if (data is byte[])
{
....
}
 
Back
Top