Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ReadKeysFromConfig() doesn't handle float
Message
From
23/11/2007 13:04:30
Jeff Corder
Ambit Technologies, LLC
Missouri, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
ReadKeysFromConfig() doesn't handle float
Miscellaneous
Thread ID:
01270917
Message ID:
01270917
Views:
65
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
Map
View

Click here to load this message in the networking platform