Open sandboxFocus

Method ToDurable

ToDurable()

Returns a reference to the same declaration that stores only a string identifier, and therefore does not keep the compilation in memory. Returns the current instance when it is already durable.

Declaration
IDurableRef<out T> ToDurable()
Returns
Type Description
IDurableRef<T>
Remarks

This is the strongly-typed variant of ToDurable(), which documents when to call it.

Exceptions
Type Condition
NotSupportedException

The reference cannot be made durable.

See Also