Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Loading XML into an ArrayList or web.config?
Message
 
 
À
30/11/2007 11:32:06
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01272358
Message ID:
01272433
Vues:
16
>Hi,
>
>>I need to load a bunch of names (up to about 15) into an array or arraylist. I would like to know which method is faster:
>>
>>1. Create an xml file of these names and use LoadXml method
>>or
>>2. Add these names into an external web.config file (e.g. my.config)
>>
>>Thank you in advance for any input.
>
>You could look at putting the items in Web.config and implementing IConfigurationSectionHandler. A handler can be simply constructed to return an ArrayList directly - and may prove reusable for other web.config sections.
>HTH,
>Viv

I have never done/heard of IConfigurationSectionHandler. I will google for some samples on the web.
Thank you very much for the suggestion.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform