Assembly: EPiServer (in EPiServer.dll) Version: 8.0.0
Changes the object instance into a read-only object.
public void MakeReadOnly()
After calling this method, any attempt to change the object instance or any contained object will generate a NotSupportedException. I.e. the semantics is "deep read-only".
Note! After setting an object to read-only it is not possible to revert back to read-write mode. You will have to call the CreateWritableClone method to get a copy that can be modified.