Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


So how do you retrieve the customized properties of a .NET application from XML .config file? Can you automate this process ?



So how do you retrieve the customized properties of a .NET application from XML .config file? Can yo..

Answer / sudhanshu

Initialize an instance of AppSettingsReader class. Call the GetValue method of AppSettingsReader class, passing in the name of the property and the type expected. Assign the result to the appropriate variable. In Visual Studio yes, use Dynamic Properties for automatic .config creation, storage and retrieval.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Why constructor is used in c#?

0 Answers  


Why cannot you specify the accessibility modifier for methods inside the interface?

0 Answers  


What is void method?

0 Answers  


Can hashset contain duplicates c#?

0 Answers  


Why is .net so popular?

0 Answers  


Is static class thread safe in c#?

0 Answers  


What is the purpose of c#?

0 Answers  


What is an example of delegation?

0 Answers  


How do I format a string in c#?

0 Answers  


Can you store multiple data types in System.Array?

5 Answers  


When should we use sealed class in c#?

0 Answers  


what is object-oriented programming (oop) language?

0 Answers  


Categories