BackingFieldHelper.

SetBackingField<TInterface, TValue>(TInterface, Expression<Func<TInterface, TValue>>, TValue) Method

Summary

Sets the backing field.

Syntax

public void SetBackingField<TInterface, TValue>(TInterface instance, Expression<Func<TInterface, TValue>> expression, TValue value)

Type Parameters

Name Description
TInterface The type of the interface.
TValue The type of the value.

Parameters

Name Type Description
instance TInterface The instance.
expression Expression<Func<TInterface, TValue>> The expression.
value TValue The value.

Return Value

Type Description
void