how do you retrieve the customized properties of a .NET
application from XML .config file? Can you automate this
process?
Answer Posted / saravankumar
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
What are the similarities and difference between class and structure in .net?
How does cas works?
Explain can the validation be done in the server side? Or this can be done only in the client side?
what is prototype design pattern in .net
Explain code access security.
Explain what is the difference between a class and an object?
Explain the difference between public and static modifiers?
Explain the process of serialization in .NET?
Usually in .net, the clr takes care of memory management. Is there any need for a programmer to explicitly release memory and resources? If yes, why and how?
What’s different between process and application in .net?
What is dot net architecture?
What are the difference bbetween value type & reference types ? Example from .net. Integer & struct are value types or reference types in .net?
What versions of .net are there?
Explain why do we use msmq?
What are the different.net tools which you used in projects?