Skip to content

ImmutableExtensions Methods

Utility class to add the .AsImmutable method to all objects.

AsImmutable(T)

staticextension
View source
public static Immutable<T> AsImmutable<T>(this T value)
Extension method to return this value wrapped in Immutable.

Parameters

valueT
Value to be wrapped.

Returns

Immutable wrapper around the original object.