London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Interface IReadOnly<T>

Defines read-only handling for objects

Namespace: EPiServer.Data.Entity
Assembly: EPiServer.Data.dll
Version: 11.20.7
Syntax
public interface IReadOnly<out T> : IReadOnly
Type Parameters
Name Description
T
Remarks

Primarily intended to change read-write objects into immutable (read-only) objects to be able to use the same object instance by several different threads etc.

Methods

CreateWritableClone()

Creates a writable copy of the current object.

Declaration
T CreateWritableClone()
Returns
Type Description
T

A writable copy of the current object.

Remarks

The cloning is a deep-copy.

Extension Methods