When to use readonly in C#
Channel:
Subscribers:
5,420
Published on ● Video Link: https://www.youtube.com/watch?v=nPYE-wPkTIY
The readonly keyword is a modifier that you can use on fields. When a field declaration includes a readonly modifier, assignments to the fields introduced by the declaration can only occur as part of the declaration or in a constructor in the same class.
Other Videos By Brian (Able Opus)
Tags:
Readonly
csharp
C#
const
constant
read-only
keyword