C mo almacenar y recuperar informaci n personalizada de un archivo de configuraci n de la aplicaci n mediante C# En este artículo se describe cómo almacenar información personalizada en un archivo de configuración (.config) que se puede recuperar más adelante durante el tiempo de ejecución en la aplicación asociada.
Esto es útil cuando se debe definir los datos que está asociados a una aplicación. Requisitos La lista siguiente describe el hardware recomendado, software, infraestructura de red y service Pack que necesitan: Microsoft Windows 2000, Windows XP, Windows Server 2003, Windows Vista o Windows Server 2008 Microsoft Visual C#En este artículo se supone que está familiarizado con los temas siguientes: Lenguaje de marcado extensible (XML) Archivos de configuración de .NET Puede almacenar la configuración de la aplicación en el archivo de configuración asociado a la aplicación.
Archivos de configuración se guardan en formato XML. Nini: An uncommonly powerful .NET configuration library. In C#, why would you use an IList versus an IDictionary or the classes around them? I know an IList is o. Dictionaries are useful in cases when you’re using one kind of data as an index for another kind of data.
Let’s say you want to read some text, break it into words, and count how many times each word is used. When you type in "bee of the bird of the moth", you want it to say there was one "bee", one "bird", one "moth", and two each of "of" and "the". You can think of this as creating an association between words and numbers: each unique word is a key, and the number of times it appears is the matching value. Create a dictionary mapping strings to integers, and each time you read a word, either add it to the dictionary with a value of 1, or increase its value by 1 if it’s already listed in the dictionary.