General information
Category:
The Mere Mortals .NET Framework
Title:
ReadKeysFromConfig() doesn't handle float
I was using RaedKeysFromConfig() to load a configuration file. One of the fields is a float type. It was saving ok, but it wouldn't load the value in. When I traced through, I found that in ReadKeysFromConfig() it uses typeWebConfig.GetMembers() to populate the MemberInfo. It returns 'single' for the type name, which is fine, except the routine is looking for 'float'. Thus, no update.
I changed the type to 'double' and it works fine.
Jeff
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only