← BYTES
C#·Starter·Ref: 22.1.8

What does the readonly keyword on a field mean?

Have a question about this video? Mention reference 22.1.8 when you contact us.

a.The field can be assigned in the constructor but not changed afterward
b.The field is always null
c.The field is visible to every assembly
d.The field is automatically thread-safe
A readonly field can be assigned at declaration or inside the declaring type's constructor, and is immutable after that.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES2218#C