what is read only and constant

Answer Posted / rafi

if we use constantat first only value should be assigned
where as
in readonly the value can be assigned any time but it
should not be modified

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Between windows authentication and sql server authentication, which one is trusted and which one is untrusted?

494


What is the keyword used to prevent a class from being inherited by another class?

671


Which class does the remote object has to inherit?

610


Is array thread safe c#?

485


What is the c# equivalent of c++ catch (…), which was a catch-all statement for any possible exception? Does c# support try-catch-finally blocks?

515






Is arraylist thread safe?

494


Define delay signing?

534


What are c# collections?

478


What are functions c#?

569


What is private class in c#?

483


Why do we need delegates?

501


What is difference between variable and property in c#?

434


What is an iqueryable in c#?

506


Is typeof c#?

543


Define xslt.

550