Differnce between private readonly fields and non private readonly fields
-
hi, What is the major differnce between private readonly fields and non private readonly fields... waiting for reply... Regards, Prajilal
-
hi, What is the major differnce between private readonly fields and non private readonly fields... waiting for reply... Regards, Prajilal
DJ245 wrote:
What is the major differnce between private readonly fields and non private readonly fields... waiting for reply...
'non'? :rolleyes: A
readonly field
cannot, by definition, be written. Aprivate readonly field
cannot be read too (only an instance of the class defining such field can) while (for instance) apublic readonly field
can be (publically!) read. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
hi, What is the major differnce between private readonly fields and non private readonly fields... waiting for reply... Regards, Prajilal
Private fields are trickier to access by the public.