Answer Posted / kirti
You can initialize readonly variables to some runtime values. Let's say your program uses current date and time as one of the values that won't change. This way you declare public readonly string DateT = new DateTime().ToString().
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the components required to create a route in mvc?
What is session state management?
What are the advantages of razor view engine?
How we can call a JavaScript function on the change of a Dropdown List in ASP.Net MVC?
What are the advantages of asp.net mvc?
What is presentation framework?
Is .net framework going away?
What is the use of action filters in an mvc application?
Explain tempdata in mvc?
What is edm (entity data model)? : Entity framework
What are the benefits of .net framework?
How to update one of my table in database at 4pm every day how it is possible?
Which version of .net framework is installed?
What are ajax helpers in mvc?
Mention what is the difference between “ActionResult” and “ViewResult” ?