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
In Server how to check whether model has error or not in ASP.Net MVC
What is net framework 3.0 ?
What is the difference between windows vista and .net framework 3.0 ?
Explain the advantages of dependency injection (di) in asp.net mvc?
What is latest version of .net framework?
List the new features added in .net framework 4.0.
My organization went through the approval process of supporting the .net framework 2.0 in production. Do we need to go through the same process all over again for the .net framework 3.0? Do I need to do any application compatibility testing for my .net framework 2.0 applications?
What filters are executed in the end?
i have done enough testing in life but now stated developing intereset in development work,Can i think of entering into development work that too in >Net after more then 4 years of testing experiece?
Explain the difference between viewbag and viewdata in mvc?
what do you mean by table-per-type?
What is the purpose of a web form?
What are authentication filters in web api?
Why should we go for entity framework?
What symbol would you use to denote, the start of a code block in razor views?