Try our conversational search powered by Generative AI!

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