Skip to content

CopyContext.TryGetCopy(object?, T?)

TryGetCopy(object?, T?)

View source
public bool TryGetCopy<T>(object? original, out T? result)
Returns the previously recorded copy of the provided object, if it exists.

Parameters

originalobject?
The original object.
resultT?
The previously recorded copy of original.

Returns

true if a copy of original has been recorded, false otherwise.