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 you mean by routing in mvc?
What are ajax helpers in asp.net mvc?
What is separation of concerns in asp.net mvc?
What is difference between Viewbag and Viewdata in ASP.NET MVC?
What is domain class model?
In .net compact framework, can we free memory explicitly without waiting for garbage collector to free the memory?
What is the difference between model and entity?
Which version of .net framework is installed?
What you mean by routing in asp.net mvc?
What are sections?
Does windows 10 need .net framework?
What are the possible razor view extensions?
What is definingquery in entity framework? : Entity framework
In which assembly is the mvc framework defined?
Explain the advantage of packaging over xcopy in .net?