What is the difference b/w constant & read only variable?

Answer Posted / test

Constant: The value of a constant variable is set at
compile time and can't be reset again.

Readonly: Can be set in a constructor or can be reset again.

Is This Answer Correct ?    19 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is dapper faster than entity framework?

616


What is the benefit of entity framework?

625


What is route config?

632


Can a view be shared across multiple controllers? If yes, how we can do that?

685


In .net compact framework, can we free memory explicitly without waiting for garbage collector to free the memory?

667






What is the mvc pattern (model view controller pattern)?

673


Explain the request flow in asp.net mvc framework?

633


What is meant by bootstrap in mvc5?

739


explain how you can load related entities in ef (entity framework)?

629


what is entity framework advantage?

700


What is the need of Action Filters in ASP.Net MVC

661


What is renderbody?

633


Which is the default http method for an action method?

585


what is explicit loading?

729


What is the difference between partial and renderpartial?

587