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 ?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Define strong name in c#?

981


What does the initial catalog parameter define in the connection string?

980


Is datetime immutable c#?

977


What is the difference between Decorator and Adapter pattern?

1030


What is multidimensional array in c#?

1028


If a.equals(b) is true then a.gethashcode & b.gethashcode must always return same hash code.

1067


In .NET how can you solve the DLL Hell problem?

1210


Define mutex in C#?

1106


What do you mean by the delegate in c#?

960


How long does it take to learn c# programming?

966


In a memory when you Box and Unbox a value-type what happens?

973


Can you store different types in an array in c#?

999


What are anonymous functions in c#?

994


What are bitwise logical operators?

944


What is the difference between struct and class c#?

1043