Gets whether the member is read-only.
true if the member is read-only; otherwise, false.
The property is marked as read-only if it does not have a set accessor. The field is read-only if it is declared as an init-only field or a constant. Refer to the Microsoft .NET Framework Documentation for details.