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 |
Explain the three services model (three-tier application). Presentation (ui), business (logic and underlying code) and data (from storage or other sources).
What is the difference between dispose() and finalize() methods in c#?
What connections does Microsoft SQL Server support?
Is c# an open source language?
What is the example of predicate?
How is the syntax written to inherit from a class in C#?Give an example ?
How do you prevent a method from being overridden in c#?
What does out mean c#?
Why do we use methods in c#?
Why do we use interfaces in c#?
What is strong name in c# and how can we use it?
Is exe is machine dependent?
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)