GetValue<T>() extension method for RegistryKey class(weblogs.asp.net)
submitted by
gpeipman(3145) 2 years, 9 months ago
I needed some elegant method to read registry values in my Live Writer Delicious bookmarks plug-in. RegistryKey has GetValue() method but it returns values as object. I wrote generic version of GetValue<T>() as RegistryKey extension method. It returns you specified value from key and converts it to type you ask. If conversions are not successful then default value of given type will be used.
|category: Windows Forms
|Views: 5
tags:
winforms another
Everyones tags:
Your Tags: