New to Telerik JustMockStart a free 30-day trial

Handles local refs returns used for mocking, used with conjunction with WithValue<T>(T)

Definition

Namespace:Telerik.JustMock

Assembly:Telerik.JustMock.dll

Type Parameters:

T

Syntax:

C#
public abstract class LocalRefHandle<T>

Inheritance: objectLocalRefHandle<T>

Constructors

Constructs local ref handle

C#
public LocalRefHandle(FuncExpectation<T>.RefDelegate refDelegate)
Parameters:refDelegateFuncExpectation<T>.RefDelegate

Mocking delegate

Properties

Delegate used for mocking ref returns, see Returns(Delegate)

C#
public FuncExpectation<T>.RefDelegate Handle { get; }

Ref to the internal value of type T

C#
public ref T Ref { get; }