So how do you retrieve the customized properties of a .NET application from XML .config file? Can you automate this process ?
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 |
what is generics? can u explain 5 to 6 examples on generics that covers class,method,structure,list,delegates?
What is the difference between virtual method and abstract method?
What is boxing & unboxing?
What is difference between an Structure and Class?
Which is better python or c#?
Why singleton is sealed?
What is sqldatareader c#?
What is namespace give the example?
List the fundamental oop concepts?
What is the use of functional interface?
What is the namespace for the thread class?
What?s the top .NET class that everything is derived from?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)