Skip to content

TupleCopier<T1, T2> Methods

Copier for System.Tuple

DeepCopy(Tuple<T1, T2>, CopyContext)

View source
public Tuple<T1, T2>? TupleCopier<T1, DeepCopy(Tuple<T1, T2>? input, CopyContext context)
Creates a deep copy of the provided input.

Parameters

inputTuple<T1, T2>
The input.
contextCopyContext
The context.

Returns

A copy of input, or null if input is null.

IsShallowCopyable

View source
public bool TupleCopier<T1, IsShallowCopyable()
Returns true if the type is shallow-copyable.

Returns

true if the type is shallow-copyable; otherwise, false.