What is the difference between readonly and const

Answer Posted / vishnu

a read only
field can be initialized either in initialization or in
constructor

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can abstract class be sealed?

480


I need code to connect ohter systems in the LAN and i want to display my website image over there and i want explain as a admin through phone. So i need code to access other system using C-Sharp. Any one please help me.Please give me the code. Advace thanks.

1460


What are events in C#?

560


In gridview in editmode if we want to display information in one combobox based on

1821


What is function c#?

491






Why do we need singleton class in c#?

536


What is the purpose of namespace in c#?

447


What is generic delegate in c#?

460


Which language is used for desktop application?

486


What is the difference between dll and lib?

478


Where’s global assembly cache located on the system?

530


What is Implicit conversion in C#?

565


What do you mean by winforms in c#?

505


Can we inherit partial class in c#?

505


What is the difference between dynamic and var in c#?

463