W WJ Jan 26, 2004 #1 How do I call the RegistryKey.GetType() method in c#. I got to the ValueKeyname and its Data. John
J Jon Skeet [C# MVP] Jan 26, 2004 #2 WJ said: How do I call the RegistryKey.GetType() method in c#. I got to the ValueKeyname and its Data. Click to expand... 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[]) { .... }
WJ said: How do I call the RegistryKey.GetType() method in c#. I got to the ValueKeyname and its Data. Click to expand... 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[]) { .... }