Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ReadKeysFromConfig() doesn't handle float
Message
 
À
23/11/2007 13:04:30
Jeff Corder
Ambit Technologies, LLC
Missouri, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01270917
Message ID:
01271798
Vues:
21
Jeff,

>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.

I'll check this out and get back to you!

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform